diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4dfb7a9..a009bd8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 \ No newline at end of file +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 + diff --git a/src/editable-form/editable-form.css b/src/editable-form/editable-form.css index 9810a18..72b74d6 100644 --- a/src/editable-form/editable-form.css +++ b/src/editable-form/editable-form.css @@ -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; } \ No newline at end of file diff --git a/src/inputs/date/date.js b/src/inputs/date/date.js index 20c1e49..d367c9b 100644 --- a/src/inputs/date/date.js +++ b/src/inputs/date/date.js @@ -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> diff --git a/src/inputs/dateui/dateui.js b/src/inputs/dateui/dateui.js index 1399f66..42a03f5 100644 --- a/src/inputs/dateui/dateui.js +++ b/src/inputs/dateui/dateui.js @@ -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 diff --git a/src/inputs/textarea.js b/src/inputs/textarea.js index 7d9026f..e7fde5a 100644 --- a/src/inputs/textarea.js +++ b/src/inputs/textarea.js @@ -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