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
21 lines
756 B
JavaScript
21 lines
756 B
JavaScript
/*
|
|
Editableform based on Twitter Bootstrap
|
|
*/
|
|
(function ($) {
|
|
|
|
$.extend($.fn.editableform.Constructor.prototype, {
|
|
initTemplate: function() {
|
|
this.$form = $($.fn.editableform.template);
|
|
this.$form.find('.editable-error-block').addClass('help-block');
|
|
}
|
|
});
|
|
|
|
//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-remove"></i></button>';
|
|
|
|
//error classes
|
|
$.fn.editableform.errorGroupClass = 'error';
|
|
$.fn.editableform.errorBlockClass = null;
|
|
|
|
}(window.jQuery)); |