Files
dist
src
containers
editable-form
editable-form-bootstrap.js
editable-form-bootstrap3.js
editable-form-jqueryui.js
editable-form-utils.js
editable-form.css
editable-form.js
element
img
inputs
inputs-ext
test
.gitignore
CHANGELOG.txt
Gruntfile.js
LICENSE-MIT
Package.nuspec
README.md
bower.json
composer.json
package.json
x-editable/src/editable-form/editable-form-jqueryui.js
2013-09-21 16:52:54 +04:00

32 lines
1015 B
JavaScript

/*
Editableform based on jQuery UI
*/
(function ($) {
"use strict";
$.extend($.fn.editableform.Constructor.prototype, {
initButtons: function() {
var $btn = this.$form.find('.editable-buttons');
$btn.append($.fn.editableform.buttons);
if(this.options.showbuttons === 'bottom') {
$btn.addClass('editable-buttons-bottom');
}
this.$form.find('.editable-submit').button({
icons: { primary: "ui-icon-check" },
text: false
}).removeAttr('title');
this.$form.find('.editable-cancel').button({
icons: { primary: "ui-icon-closethick" },
text: false
}).removeAttr('title');
}
});
//error classes
$.fn.editableform.errorGroupClass = null;
$.fn.editableform.errorBlockClass = 'ui-state-error';
//engine
$.fn.editableform.engine = 'jquery-ui';
}(window.jQuery));