1
0
Fork 0
forked from 0x2620/oxjs

in manage places, reset form errors (fixes #576)

This commit is contained in:
rlx 2012-02-21 08:59:49 +00:00
commit 33ddaf8d9a
2 changed files with 22 additions and 27 deletions

View file

@ -31,8 +31,6 @@ Ox.ListCalendar = function(options, self) {
height: self.options.height + 'px'
});
Ox.print('LCO', self.options)
self.durationCache = {};
self.durationSize = {
86400: 10,
@ -73,7 +71,6 @@ Ox.ListCalendar = function(options, self) {
},
{
format: function(value, data) {
Ox.print('format', value, data)
return data.type
? value
: $('<span>').addClass('OxWarning').html(value);
@ -621,7 +618,6 @@ Ox.ListCalendar = function(options, self) {
data = {id: id};
data[key] = value;
self.options.editEvent(data, function(result) {
Ox.print('EDIT EVENT::', result.data)
if (result.status.code == 200) {
self.options.events[index][key] = value;
self.$list.value(id, key, value);
@ -713,7 +709,6 @@ Ox.ListCalendar = function(options, self) {
function selectItem(data) {
// Select item in list
Ox.print('selectItem', data);
var event, isUndefined, selectedEvent;
self.options.selected = data.ids.length ? data.ids[0] : '';
event = self.options.selected
@ -724,7 +719,6 @@ Ox.ListCalendar = function(options, self) {
? self.options.selected : '';
self.$calendar.options({selected: selectedEvent});
selectedEvent && self.$calendar.panToEvent();
Ox.print('EVENT', event, self.options.hasMatches)
if (self.options.selected) {
self.$eventName.options({title: event.name || ''});
self.$eventTitle.show();