forked from extern/egroupware
Move holidays.php out of inc subdirectory, add a failure check
This commit is contained in:
parent
4d88ec8445
commit
153dde2200
@ -26,7 +26,7 @@ $GLOBALS['egw_info'] = array(
|
||||
)
|
||||
);
|
||||
|
||||
include '../../header.inc.php';
|
||||
include '../header.inc.php';
|
||||
|
||||
$GLOBALS['egw_info']['flags']['currentapp'] = 'calendar';
|
||||
|
@ -633,7 +633,7 @@ jQuery.extend(et2_calendar_view,
|
||||
// one widget listening for the response by the time it gets back,
|
||||
// and we can't do that when it's queued.
|
||||
view.holiday_cache[year] = jQuery.getJSON(
|
||||
egw.link('/calendar/inc/holidays.php', {year: year})
|
||||
egw.link('/calendar/holidays.php', {year: year})
|
||||
);
|
||||
}
|
||||
cache = view.holiday_cache[year];
|
||||
@ -650,6 +650,9 @@ jQuery.extend(et2_calendar_view,
|
||||
this.widget.day_class_holiday();
|
||||
}
|
||||
},this),1);
|
||||
},{widget:widget,year:year}))
|
||||
.fail(jQuery.proxy(function() {
|
||||
view.holiday_cache[this.year] = undefined;
|
||||
}, {widget: widget, year: year}));
|
||||
return {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user