src
containers
editable-form
editable-form-bootstrap.js
editable-form-jqueryui.js
editable-form-utils.js
editable-form.css
editable-form.js
element
img
inputs
inputs-ext
test
.gitignore
CHANGELOG.txt
LICENSE-MIT
Package.nuspec
README.md
grunt.js
package.json
25 lines
790 B
JavaScript
25 lines
790 B
JavaScript
/*
|
|
Editableform based on jQuery UI
|
|
*/
|
|
(function ($) {
|
|
"use strict";
|
|
|
|
$.extend($.fn.editableform.Constructor.prototype, {
|
|
initButtons: function() {
|
|
this.$form.find('.editable-buttons').append($.fn.editableform.buttons);
|
|
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';
|
|
|
|
}(window.jQuery)); |