new form template fixes
This commit is contained in:
@ -3,14 +3,19 @@ Editableform based on Twitter Bootstrap
|
||||
*/
|
||||
(function ($) {
|
||||
|
||||
//form template
|
||||
$.fn.editableform.template = '<form class="form-inline editableform"><div class="control-group">' +
|
||||
'<div class="editable-input"></div><div class="editable-buttons"></div>' +
|
||||
'<div class="help-block editable-error-block"></div>' +
|
||||
'</div></form>';
|
||||
$.extend($.fn.editableform.Constructor.prototype, {
|
||||
initTemplate: function() {
|
||||
this.$form = $($.fn.editableform.template);
|
||||
this.$form.find('.editable-error-block').addClass('help-block');
|
||||
|
||||
//buttons
|
||||
this.$form.find('div.editable-buttons').append($.fn.editableform.buttons);
|
||||
}
|
||||
});
|
||||
|
||||
//buttons
|
||||
$.fn.editableform.buttons = '<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i></button><button type="button" class="btn clearfix"><i class="icon-ban-circle"></i></button>';
|
||||
$.fn.editableform.buttons = '<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i></button>'+
|
||||
'<button type="button" class="btn clearfix"><i class="icon-ban-circle"></i></button>';
|
||||
|
||||
//error classes
|
||||
$.fn.editableform.errorGroupClass = 'error';
|
||||
|
Reference in New Issue
Block a user