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};
self.options.events[index][key] = value;
data[key] = value;
var time0 = +new Date();
self.$list.options({items: Ox.clone(self.options.events, true)});
Ox.print('TIME TO SET LIST OPTIONS:', +new Date() - time0);
self.$list.value(id, key, value);
if (['name', 'type', 'start', 'end'].indexOf(key) > -1) {
self.$calendar.editEvent(id, key, value);
}