mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
got jscalendar in calendars sidebox working with jdots template
This commit is contained in:
parent
0d05a9ce40
commit
c2237c4daa
@ -181,12 +181,12 @@ function dateChanged(calendar) {
|
|||||||
// clicked you can use the dateClicked property of the calendar:
|
// clicked you can use the dateClicked property of the calendar:
|
||||||
// redirect to $url extended with a &date=YYYYMMDD
|
// redirect to $url extended with a &date=YYYYMMDD
|
||||||
' if (calendar.dateClicked) {
|
' if (calendar.dateClicked) {
|
||||||
window.location = "'.$url.'&date=" + calendar.date.print("%Y%m%d");
|
egw_appWindow("calendar").location = "'.$url.'&date=" + calendar.date.print("%Y%m%d");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function todayClicked(calendar) {
|
function todayClicked(calendar) {
|
||||||
var parts = window.location.search.split("&");
|
var parts = egw_appWindow("calendar").location.search.split("&");
|
||||||
var newsearch = "";
|
var newsearch = "";
|
||||||
var hasdate = false;
|
var hasdate = false;
|
||||||
|
|
||||||
@ -218,16 +218,16 @@ function todayClicked(calendar) {
|
|||||||
newsearch += "date='.egw_time::to('now','Ymd').'";
|
newsearch += "date='.egw_time::to('now','Ymd').'";
|
||||||
}
|
}
|
||||||
|
|
||||||
window.location.search = newsearch;
|
egw_appWindow("calendar").location.search = newsearch;
|
||||||
}
|
}
|
||||||
|
|
||||||
'.($weekUrl ? '
|
'.($weekUrl ? '
|
||||||
function weekClicked(calendar,weekstart) {
|
function weekClicked(calendar,weekstart) {
|
||||||
window.location = "'.$weekUrl.'&date=" + weekstart.print("%Y%m%d");
|
egw_appWindow("calendar").location = "'.$weekUrl.'&date=" + weekstart.print("%Y%m%d");
|
||||||
}
|
}
|
||||||
' : '').($monthUrl ? '
|
' : '').($monthUrl ? '
|
||||||
function monthClicked(calendar,monthstart) {
|
function monthClicked(calendar,monthstart) {
|
||||||
window.location = "'.$monthUrl.'&date=" + monthstart.print("%Y%m%d");
|
egw_appWindow("calendar").location = "'.$monthUrl.'&date=" + monthstart.print("%Y%m%d");
|
||||||
}
|
}
|
||||||
' : '').'
|
' : '').'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user