From 0a694b581cf6088e3e4d149dd1d7d1669ef697ef Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 24 Mar 2008 15:19:08 -0500 Subject: [PATCH] Beginning work on Calendar compatibility fixes Signed-off-by: Joshua Ferraro --- .../prog/en/modules/tools/holidays.tmpl | 197 +++++++++--------- 1 file changed, 96 insertions(+), 101 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl index 006ec4b835..200393f597 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl @@ -36,7 +36,7 @@ mouseXMax = window.innerWidth + window.pageXOffset; mouseYMax = window.innerHeight + window.pageYOffset; } - } + } function holidayOperation(formObject, opType) { var op = document.getElementsByName('operation'); @@ -46,12 +46,8 @@ // This function shows the "Show Holiday" panel // function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description) { - - var panel = document.getElementById('showHoliday'); - panel.style.display = 'inline'; - document.getElementById('newHoliday').style.display = 'none'; - panel.style.top = mouseYMax/2; - panel.style.left = (mouseXMax/2) - 250; + $("#newHoliday").slideUp("fast"); + $("#showHoliday").slideDown("fast"); document.getElementById('showDayname').value = dayName; document.getElementById('showBranchName').value = document.getElementById('branch').value; document.getElementById('showDay').value = day; @@ -70,21 +66,18 @@ // This function shows the "Add Holiday" panel // function newHoliday (dayName, day, month, year, weekDay) { - var panel = document.getElementById('newHoliday'); - panel.style.display = 'inline'; - document.getElementById('showHoliday').style.display = 'none'; - panel.style.top = mouseYMax/2; - panel.style.left = (mouseXMax/2) - 250; - document.getElementById('newDayname').value = dayName; - document.getElementById('newBranchName').value = document.getElementById('branch').value; - document.getElementById('newDay').value = day; - document.getElementById('newMonth').value = month; - document.getElementById('newYear').value = year; - document.getElementsByName('newWeekday')[0].value = weekDay; + $("#showHoliday").slideUp("fast"); + $("#newHoliday").slideDown("fast"); + $("#newDayname").val(dayName); + $("#newBranchName").val($('#branch').val()); + $("#newDay").val(day); + $("#newMonth").val(month); + $("#newYear").val(year); + $("#newWeekday")[0].val(weekDay); } function hidePanel(aPanelName) { - document.getElementById(aPanelName).style.display = 'none'; + $("#"+aPanelName).slideUp("fast"); } function changeBranch () { @@ -161,7 +154,7 @@ display : none; border : 1px solid #000000; padding : 3px; - position: absolute; + /* position: absolute; */ background-color: #CCCCCC; } @@ -190,88 +183,7 @@ div.dmy {
- - - - - -
-
-

Edit this holiday

-

- - -

-

- - - -

-
- - - -
-

-
- -

-
- - /../img/more.gif" border="0" alt="More information" /> -
- . - /../img/more.gif" border="0" alt="More information" /> -

- - -

-
-
- - -
-
-

Add new holiday

-

- - -

-

- - - -

-
- - - -
-

-
- -

- - . - /../img/more.gif" border="0" alt="More information" /> -
- - . - /../img/more.gif" border="0" alt="More information" /> -
- - . - /../img/more.gif" border="0" alt="More information" /> -

- - -

-
-
- - - @@ -303,6 +215,89 @@ div.dmy { Repeatable holiday Holiday exception

+ + + + + + +
+
+

Edit this holiday

+

+ + +

+

+ + + +

+
+ + + +
+

+
+ +

+
+ + /../img/more.gif" border="0" alt="More information" /> +
+ . + /../img/more.gif" border="0" alt="More information" /> +

+ + +

+
+
+ + +
+
+

Add new holiday

+

+ + +

+

+ + + +

+
+ + + +
+

+
+ +

+ + . + /../img/more.gif" border="0" alt="More information" /> +
+ + . + /../img/more.gif" border="0" alt="More information" /> +
+ + . + /../img/more.gif" border="0" alt="More information" /> +

+ + +

+
+
+ + + + -- 2.39.5