hjg
2024-07-09 30304784e82d4bba24121328da8eb8490aec4f4f
提交 | 用户 | 时间
58d006 1 X-editable changelog
A 2 =============================
3
4 Version 1.4.6 Aug 8, 2013
5 ----------------------------
6 [bug #312] can't apply selector more than once (vitalets)
7 [enh #48] textarea: use `white-space: pre-wrap` instead of nl2br conversion (vitalets)
8 [enh #286] added HTML5 time input (Doggie52)
9 [enh] add `defaultValue` option (vitalets)
10 [enh #313] add composer support (masim)
11 [enh #300] Fix 'bootstrap popover falls off page if editable is too close to window edge' (belerweb)
12 [enh #302] allow data-datepicker and data-datetimepicker (vitalets)
13 [enh #287] add option to disable item in select (vitalets)
14 [enh #281] add collision flag to adjust tooltip position (vitalets)
15 [bug #279] fix jQuery UI tooltip z-index to be less than select2 dropdown (vitalets)
16 [bug #276] support id() and text() functions of select2 (vitalets)
17
18
19 Version 1.4.5 Jun 23, 2013
20 ----------------------------
21 [enh #245] highlight element after update (vitalets)
22 [enh] select2 now works with ajax source (vitalets)
23 [bug] fix datefield (datetimefield) to return null for incorrect dates (vitalets)
24 [bug #224] do not close popup when it is saving value (vitalets)
25 [enh] added `submitValue` to `save` event params (vitalets)
26 [enh #259] allow `getValue` method to return value itself, not object (vitalets)
27 [enh] add `destroy` method to inputs (vitalets)
28 [enh #164] allow emptytext to be html (vitalets)
29 [enh #78] allow html in editable content (vitalets)
30 [enh] update container position when datetimepicker viewMode changes (vitalets)
31 [enh #255] remove xxxView options from first level config of datetimepicker (vitalets)
32 [enh] if `display` defined as function call it on init (vitalets)
33 [enh #218] sourceCache now disables cache totally (vitalets)
34 [bug #156] solve conflict of bootstrap datepicker and jQuery UI datepicker (vitalets)
35 [enh] update bootstrap-datepicker to 1.1.2 (vitalets)
36 [enh] allow follow links in disabled state (vitalets)
37 [enh] update combodate to 1.0.4, fix #222 (vitalets)
38
39
40 Version 1.4.4 May 4, 2013
41 ----------------------------
42 [enh #219] added `error` callback (joekaiser)
43 [enh #198] new value of showbuttons: 'bottom' (vitalets)
44 [enh #192] add class editable-popup to have diferent css for popup and inline (vitalets)
45 [enh] update to bootstrap-datepicker 1.0.2 (vitalets)
46 [enh] update to combodate 1.0.3 with yearDescending and roundTime options (vitalets)
47 [enh] add 'use strict' directive (vitalets)
48 [enh #202] allow pk=0 (mdeweerd)
49 [enh #183] move datepicker icon to center of button (vitalets)
50 [enh] upgrade to select2 3.3.2 (vitalets)
51 [enh #176] update to bootstrap 2.3.1 (vitalets)
52 [bug #171] clear in date & datetime when showbuttons=false (vitalets)
53 [bug #166] clear button for input type=number (vitalets)
54 [bug #65] checklist don't show checked for single value (vitalets)
55 [enh #188] added bootstrap datetime (adeg, vitalets)
56 [bug] editable-poshytip on inline mode tries to write in $.Poshytip (vitalets)
57
58
59 Version 1.4.3 Mar 8, 2013
60 ----------------------------
61 [bug #32] hotfix for jQuery UI 1.9+ (vitalets)
62
63
64 Version 1.4.2 Mar 7, 2013
65 ----------------------------
66 [enh #132] combodate options can be defined via data-combodate json string (vitalets)
67 [enh] source defined as function now has scope of element and can return string used as url (vitalets)
68 [bug #99] select2 with Hierarchical Data (kev360)
69 [bug #81] wysihtml5: fix inserting image (vitalets)
70 [bug] remove $.browser from wysihtml5 input to support jQuery 1.9 (vitalets)
71 [bug #142] editable poshytip jquery 1.9+ compatibility (spiderpug)
72 [enh #126] Update bootstrap datepicker library and add minViewMode to options (kev360)
73 [enh #150] select2 with showbuttons = false (vitalets)
74 [bug #149] datepicker not shown when showbuttons = false (vitalets)
75 [bug #133] clear button incorect position due to parent line-height property (vitalets)
76 [bug #141] data-value ignored for empty elements (vitalets)
77 [bug #137] fix empty class for delegated element (vitalets)
78 [enh #121] add support of momentjs 2.0.0 in combodate (vitalets)
79
80
81 Version 1.4.1 Jan 18, 2013
82 ----------------------------
83 [enh #62] new option `selector` to work with delegated targets (vitalets) 
84 [enh] new option `unsavedclass` to set css class when value was not sent to server (vitalets) 
85 [enh] new option `emptyclass` to set css class when element is empty (vitalets) 
86 [enh #59] select2 input (vitalets) 
87 [enh #17] typeahead input (vitalets) 
88 [enh] select: support of OPTGROUP via `children` key in source (vitalets) 
89 [enh] checklist: set checked via prop instead of attr (vitalets) 
90
91
92 Version 1.4.0 Jan 11, 2013
93 ----------------------------
94 [enh] added new input type: combodate (vitalets) 
95 [bug #68] allow arrays for data attributes (adimitrov) 
96 [enh] setValue method updates input if form is open (vitalets) 
97 [enh] select: change source via option method, see #61 (vitalets) 
98 [bug] select: source loaded twice if sourceCache = false (vitalets) 
99 [enh] added `destroy` method, see #61 (vitalets) 
100 [enh] textarea: added `rows` property (vitalets) 
101 [enh #60] added wysihtml5 input (vitalets) 
102 [enh] added IOS-style clear button for text inputs (vitalets) 
103 [enh] date inputs changed in inline mode (vitalets) 
104 [enh #51] popup/inline modes can be toggled via `mode` config option. No more *-inline.js versions of files (vitalets)
105 [enh] update bootstrap-datepicker to upstream (vitalets)
106 [enh] 'display' method: added param 'response' allowing to show text directly from server (vitalets)
107 [enh] new util method `$.fn.editableutils.itemsByValue` to easily get selected items for sourced-inputs (vitalets)
108 [enh] convert newlines to <br> in error message for more pretty display (vitalets)
109 [enh #57] remove css height for textarea (vitalets) 
110 [enh] if new value for select is 'null' source should not load (vitalets) 
111 [enh #53] 'name' no more appended to source defined as url (vitalets) 
112 [enh #46] move 'img' dir outside 'css' (vitalets) 
113 [enh #48] fix handling of newlines in textarea input (jmfontaine) 
114 [enh #47] set select source to function (brianchance) 
115 [bug] fix inline container move on next line in IE7 (vitalets) 
116
117
118 Version 1.3.0 Dec 10, 2012
119 ----------------------------  
120 [enh] added html5 inputs support: password, email, url, tel, number, range (vitalets) 
121 [bug #43] fix for bootstrap 2.2.2 (vitalets) 
122 [enh #41] 'abstract' class renamed to 'abstractinput' as abstract is reserved word (vitalets)
123 [enh #40] 'params' option defined as function overwrites original ajax data instead of appending (vitalets)
124 [bug] datepicker: error when click on arrows after clear date (vitalets) 
125 [enh] 'hidden' event: added possible value of reason param - 'nochange'. Occurs when form is submitted but value was not changed (vitalets) 
126 [enh] 'submit' method changed: error-callback's parameter simplified (vitalets) 
127 [enh] 'submit' method changed: now when response 200 OK it does not set pk automatically (vitalets) 
128 [enh] 'submit' method changed: removed dataType='json'. Use 'ajaxOptions' to specify dataType if needed (vitalets) 
129 [enh] removed default ajax dataType='json'. Use 'ajaxOptions' to specify dataType if needed (vitalets) 
130 [enh] select: do not show 'sourceError' in element during autotext execution (vitalets) 
131
132
133 Version 1.2.0 Dec 6, 2012
134 ----------------------------  
135 [enh #36] 'submit' method: added 'ajaxOptions' property to modify ajax request (vitalets)  
136 [enh] inputs now internally use 'value2submit' method instead of previous 'value2str' (vitalets)  
137 [enh] editableContainer removed from docs (vitalets)  
138 [enh] editableContainer: removed 'autohide' option and 'cancel' event. Use 'hidden' event instead (vitalets)  
139 [enh] 'hidden' event: added param 'reason' that points to reason caused hiding (vitalets)  
140 [enh] 'select' submit by enter (vitalets)  
141 [bug #37] fix incorrectly shown datepicker in jquery 1.7.1 + webkit (vitalets)  
142 [enh] added url param 'jquery' to run tests in different versions of jquery, e.g. '&jquery=1.7.2' (vitalets)  
143 [enh] 'enablefocus' option removed. More efficient to use 'save/hide' events to set focus to any element (vitalets)  
144 [enh] 'init' event was added due to removal of render event (vitalets)  
145 [enh] 'render' event was removed, use 'display' callback instead (vitalets)  
146 [enh] 'checklist' submit value as array, not comma separated string (vitalets)  
147 [enh] 'checklist' was refactored: options 'viewseparator', 'limit', 'limitText' are supressed by 'display' callback (vitalets)  
148 [enh] new option: 'display' callback. Makes far more flexible rendering value into element's text. (vitalets)  
149 [bug] fix typos (atrophic) 
150 [enh] all callbacks scope changed to element (vitalets) 
151 [enh] new option: 'savenochange' to save or cancel value when it was not changed in form (vitalets) 
152 [enh] composite pk can be defined as JSON in data-pk attribute (vitalets) 
153 [enh #30] new option 'sourceCache' true|false to disable cache for select (vitalets) 
154 [bug #34] inputclass span* broken with fluid bootstrap layout. Classes changed to 'input-*'. (vitalets) 
155 [enh] utils now added to $.fn.editableutils instead of $.fn.editableform.utils (vitalets)
156 [enh] input types now added to $.fn.editabletypes instead of $.fn.editableform.types (vitalets)
157 [enh] playground and tests now use requirejs (vitalets)  
158 [bug #27] 'today' button toggle bug in bootstrap-datepicker (vitalets)  
159
160
161 Version 1.1.1 Nov 30, 2012
162 ----------------------------   
163 [enh] 'showbuttons' option to hide buttons in form (vitalets)  
164 [enh] object can be passed in 'option' method to set several options at once (vitalets)  
165 [enh #20] toggle editable by 'dblclick' and 'mouseenter' (vitalets)  
166 [enh] added 'inputs-ext' directory with sample input 'address'. They will not be concatenated to main files (vitalets)  
167 [enh #13] 'onblur' option: to cancel, submit or ignore when user clicks outside the form (vitalets)  
168 [enh] 'ajaxOptions' parameter for advanced ajax configuration (vitalets)  
169 [enh] 'success' callback can return object to overwrite submitted value (vitalets)  
170        
171        
172 Version 1.1.0 Nov 27, 2012
173 ----------------------------   
174 [enh #11] icon cancel changed to 'cross' (tarciozemel)  
175 [enh] added support for IE7+ (vitalets)  
176 [enh #9] 'name' or 'id' is not required anymore (vitalets)      
177 [enh] 'clear' button added in date and dateui (vitalets)      
178 [enh] form template changed: added DIV.editable-input, DIV.editable.buttons and $.fn.editableform.buttons (vitalets)      
179 [enh] new input type: checklist (vitalets)      
180 [enh] updated docs: inputs dropdown menu, global templates section (vitalets)      
181                             
182
183 Version 1.0.1 Nov 22, 2012
184 ----------------------------          
185 [enh] contribution guide in README.md (vitalets)   
186 [enh #7] 'shown', 'hidden' events added (vitalets)         
187 [enh #1] params can be a function to calculate it dynamically (vitalets)         
188 [enh #6] do not preventDefault() in click when toggle='manual'. This allows to have clickable links (vitalets)
189 [bug #3] should not mark element with unsave css if url is user's function (vitalets)         
190           
191                  
192 Version 1.0.0 Nov 19, 2012 
193 ----------------------------
194 Initial release. This library is new life of bootstrap-editable (1.1.4) that was strongly refactored and improved.
195 Main features:
196 - support not only bootstrap but any core library: bootstrap, jquery-ui or pure jquery 
197 - different container classes to show form: popover, tooltip, poshytip, etc
198 - inline and popup versions 
199 - new directory structure and logic in separate js files allowing easy contribution
200                                                                 
201 It is not fully compatible with bootstrap-editable but has mainly the same interface and api.
202 Here list of differences to help you to upgrade your application:
203
204 [change] 'toggle' option value can be only click|manual (not toggling element id). In case of 'manual' you should write handler calling 'show' method.
205 [change] 'validate' option cannot be defined as object anymore.
206 [change] events 'init', 'update', 'shown', 'hidden' removed. Events 'save', 'cancel' added. Event 'render' remains. 
207 [change] input's option 'template' renamed to 'tpl' (to exclude conflict with container's template).
208 [change] value can be stored internally as object (previously was always string). Useful for date input.
209 [change] 'error' callback option is removed. 'success' callback remained.
210 [enh] 'source' option in select can be array of structure [{value: 1, text: 'abc'}, {...}]. This allows to keep ordering of items in dropdown list. Previous format is supported for compatibility.
211 [enh] api method 'setValue' to set manually value of editable.
212 [change] locales directory is excluded from bootstrap-datepicker input. If you need localization you should jus download corresponding file from github.
213 [change] date and dateui specific options can be set only via 'datepicker' option in first level of config (previously it was possible to set some options directly in config, e.g. weekStart).
214 [change] if 'url' option defined as function - it is used as submit method instead of ajax (previously it was dynamically return url string and ajax occurred anyway)
215
216 Also all known bugs of bootstrap-editable were closed.