in listcalendar, when editing, set list item value instead of reloading list

This commit is contained in:
rlx 2011-10-11 06:50:02 +00:00
parent 527f75b009
commit 3fc1611803

View file

@ -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);
} }