From cb3a1e6009c9711226ac093c987be33125ce48f7 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 24 Feb 2010 16:34:58 +0100 Subject: [PATCH] Add permissions stub. --- kronolith/js/kronolith.js | 23 ++++ kronolith/templates/chunks/calendar.php | 207 +++++++++++++++++++++++++++++++- kronolith/themes/screen.css | 15 ++- 3 files changed, 239 insertions(+), 6 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index f8c87e4d3..c7c4e2f99 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -2706,6 +2706,29 @@ KronolithCore = { e.stop(); return; + case 'kronolithCalendarPermsMore': + case 'kronolithCalendarPermsLess': + $('kronolithCalendarPermsBasic').toggle(); + $('kronolithCalendarPermsAdvanced').toggle(); + e.stop(); + return; + + case 'kronolithCalendarPermsAll': + if ($F('kronolithCalendarPermsAll')) { + $('kronolithCalendarPermsShow').enable(); + } else { + $('kronolithCalendarPermsShow').disable(); + } + return; + + case 'kronolithCalendarPermsGroup': + if ($F('kronolithCalendarPermsGroup')) { + $('kronolithCalendarPermsGroupPerms').enable(); + } else { + $('kronolithCalendarPermsGroupPerms').disable(); + } + return; + case 'kronolithNavDay': case 'kronolithNavWeek': case 'kronolithNavMonth': diff --git a/kronolith/templates/chunks/calendar.php b/kronolith/templates/chunks/calendar.php index 247b471bd..d87be8b73 100644 --- a/kronolith/templates/chunks/calendar.php +++ b/kronolith/templates/chunks/calendar.php @@ -1,3 +1,4 @@ +
@@ -39,7 +40,211 @@