change cancel button
This commit is contained in:
parent
5ef1a9e184
commit
5d8861a49a
@ -3,6 +3,7 @@ X-editable changelog
|
||||
|
||||
Version 1.1.0 wip
|
||||
----------------------------
|
||||
[enh] added support for IE7+ (vitalets)
|
||||
[enh #9] 'name' or 'id' is not required anymore (vitalets)
|
||||
[enh] 'clear' button added in date and dateui (vitalets)
|
||||
[enh] form template changed: added DIV.editable-input, DIV.editable.buttons and $.fn.editableform buttons (vitalets)
|
||||
|
@ -13,7 +13,7 @@ Your feedback is very appreciated!
|
||||
## Contribution
|
||||
A few steps how to start contributing:
|
||||
|
||||
1.[Fork X-editable](https://github.com/vitalets/x-editable/fork)
|
||||
1.[Fork X-editable](https://github.com/vitalets/x-editable/fork) and pull the latest changes from <code>dev</code> branch
|
||||
|
||||
2.Arrange local directory structure. It should be:
|
||||
**x-editable**
|
||||
|
@ -15,7 +15,7 @@ Editableform based on Twitter Bootstrap
|
||||
|
||||
//buttons
|
||||
$.fn.editableform.buttons = '<button type="submit" class="btn btn-primary editable-submit"><i class="icon-ok icon-white"></i></button>'+
|
||||
'<button type="button" class="btn editable-cancel"><i class="icon-ban-circle"></i></button>';
|
||||
'<button type="button" class="btn editable-cancel"><i class="icon-remove"></i></button>';
|
||||
|
||||
//error classes
|
||||
$.fn.editableform.errorGroupClass = 'error';
|
||||
|
@ -14,7 +14,7 @@ Editableform based on jQuery UI
|
||||
text: false
|
||||
}).removeAttr('title');
|
||||
this.$form.find('.editable-cancel').button({
|
||||
icons: { primary: "ui-icon-cancel" },
|
||||
icons: { primary: "ui-icon-closethick" },
|
||||
text: false
|
||||
}).removeAttr('title');
|
||||
|
||||
|
@ -47,11 +47,15 @@
|
||||
|
||||
.editable-error-block {
|
||||
max-width: 300px;
|
||||
padding-top: 3px;
|
||||
margin: 0;
|
||||
margin: 5px 0 0 0;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/*add padding for jquery ui*/
|
||||
.editable-error-block.ui-state-error {
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.editable-error {
|
||||
color: red;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user