add class editable-input

This commit is contained in:
vitalets
2012-11-25 15:11:18 +04:00
parent 69628f131d
commit 40eea34004
3 changed files with 5 additions and 6 deletions

@ -23,12 +23,11 @@
color: red; color: red;
} }
.editableform input, .editableform .editable-input {
.editableform select,
.editableform textarea {
vertical-align: top; vertical-align: top;
display: inline-block; display: inline-block;
width: auto; /* bootstrap-responsive has width: 100% that breakes layout */ width: auto; /* bootstrap-responsive has width: 100% that breakes layout */
float: left;
} }
.editableform textarea { .editableform textarea {
@ -36,7 +35,6 @@
} }
.editableform .editable-date { .editableform .editable-date {
float: left;
padding: 0; padding: 0;
margin: 0 0 9px 0; margin: 0 0 9px 0;
} }

@ -28,6 +28,7 @@ To create your own input you should inherit from this class.
**/ **/
render: function() { render: function() {
this.$input = $(this.options.tpl); this.$input = $(this.options.tpl);
this.$input.addClass('editable-input');
if(this.options.inputclass) { if(this.options.inputclass) {
this.$input.addClass(this.options.inputclass); this.$input.addClass(this.options.inputclass);
} }

@ -1,5 +1,5 @@
/** /**
List of checkboxes. Internally value stored as javascript array. List of checkboxes. Internally value stored as javascript array of values.
@class checklist @class checklist
@extends list @extends list
@ -147,4 +147,4 @@ $(function(){
$.fn.editableform.types.checklist = Checklist; $.fn.editableform.types.checklist = Checklist;
}(window.jQuery)); }(window.jQuery));