forked from extern/egroupware
Move holidays.php out of inc subdirectory, add a failure check
This commit is contained in:
parent
0211be26ba
commit
1684c7a1d5
@ -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,7 +650,10 @@ jQuery.extend(et2_calendar_view,
|
||||
this.widget.day_class_holiday();
|
||||
}
|
||||
},this),1);
|
||||
},{widget:widget,year:year}));
|
||||
},{widget:widget,year:year}))
|
||||
.fail(jQuery.proxy(function() {
|
||||
view.holiday_cache[this.year] = undefined;
|
||||
}, {widget: widget, year: year}));
|
||||
return {};
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user