input templatees cleared from styles

This commit is contained in:
vitalets 2012-11-17 12:41:57 +04:00
parent 8b3755a19d
commit 522b90e918
5 changed files with 28 additions and 14 deletions

@ -3,7 +3,11 @@ X-editable changelog
Version 1.0.0 wip
----------------------------
Initial release. Based on bootstrap-editable 1.1.4, but strongly refactored.
- support of bootstrap, jqueryui or pure jquery as core library
- directory structure re-arranged: split on several js files
- all known bugs of bootstrap-editable closed
Initial release. Based on bootstrap-editable (1.1.4) with many improvements:
[enh] support of different core libraries: bootstrap, jqueryui or pure jquery
[change] 'toggle' option value can be only click|manual (not element id)
[change] 'validate' option cannot be defined as object anymore
[change] events 'init', 'update', 'shown', 'hidden' removed. Events 'save', 'cancel' added. Event 'render' remains.
[change] directory structure re-arranged: split on several js files
[bug] all known bugs of bootstrap-editable closed

@ -28,4 +28,14 @@
.editableform textarea {
vertical-align: top;
display: inline-block;
}
.editableform textarea {
height: 150px; /*default height for textarea*/
}
.editableform .editable-date {
float: left;
padding: 0;
margin: 0 0 9px 0;
}

@ -88,14 +88,14 @@ $(function(){
Date.defaults = $.extend({}, $.fn.editableform.types.abstract.defaults, {
/**
@property tpl
@default <div style="float: left; padding: 0; margin: 0 0 9px 0"></div>
@default <div></div>
**/
tpl:'<div style="float: left; padding: 0; margin: 0 0 9px 0"></div>',
tpl:'<div></div>',
/**
@property inputclass
@default well
@default editable-date well
**/
inputclass: 'well',
inputclass: 'editable-date well',
/**
Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br>
Possible tokens are: <code>d, dd, m, mm, yy, yyyy</code>

@ -106,14 +106,14 @@ $(function(){
DateUI.defaults = $.extend({}, $.fn.editableform.types.abstract.defaults, {
/**
@property tpl
@default <div style="float: left"></div>
@default <div></div>
**/
tpl:'<div style="float: left"></div>',
tpl:'<div></div>',
/**
@property inputclass
@default ''
@default 'editable-date'
**/
inputclass: '',
inputclass: 'editable-date',
/**
Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br>
Full list of tokens: http://docs.jquery.com/UI/Datepicker/formatDate

@ -68,9 +68,9 @@ $(function(){
Textarea.defaults = $.extend({}, $.fn.editableform.types.abstract.defaults, {
/**
@property tpl
@default <textarea rows="8"></textarea>
@default <textarea></textarea>
**/
tpl:'<textarea rows="8"></textarea>',
tpl:'<textarea></textarea>',
/**
@property inputclass
@default span3