in listcalendar, when editing, set list item value instead of reloading list
This commit is contained in:
parent
527f75b009
commit
3fc1611803
1 changed files with 1 additions and 3 deletions
|
@ -493,9 +493,7 @@ Ox.ListCalendar = function(options, self) {
|
||||||
data = {id: id};
|
data = {id: id};
|
||||||
self.options.events[index][key] = value;
|
self.options.events[index][key] = value;
|
||||||
data[key] = value;
|
data[key] = value;
|
||||||
var time0 = +new Date();
|
self.$list.value(id, key, value);
|
||||||
self.$list.options({items: Ox.clone(self.options.events, true)});
|
|
||||||
Ox.print('TIME TO SET LIST OPTIONS:', +new Date() - time0);
|
|
||||||
if (['name', 'type', 'start', 'end'].indexOf(key) > -1) {
|
if (['name', 'type', 'start', 'end'].indexOf(key) > -1) {
|
||||||
self.$calendar.editEvent(id, key, value);
|
self.$calendar.editEvent(id, key, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue