Namespace calendar popup CSS rules.
authorJan Schneider <jan@horde.org>
Tue, 16 Mar 2010 23:07:45 +0000 (00:07 +0100)
committerJan Schneider <jan@horde.org>
Tue, 16 Mar 2010 23:07:45 +0000 (00:07 +0100)
horde/js/calendar.js
horde/templates/javascript/open_calendar.js
horde/themes/rtl.css
horde/themes/screen.css
kronolith/templates/javascript/goto.js
kronolith/themes/screen.css

index c3f093f..da21fce 100644 (file)
@@ -70,7 +70,7 @@ var Horde_Calendar =
 
         var cell, i, i_max, p, row, startOfView, vp,
             count = 1,
-            div = $('horde-calendar'),
+            div = $('hordeCalendar'),
             tbody = div.down('TBODY'),
 
             // Requires init above
@@ -133,13 +133,13 @@ var Horde_Calendar =
             if (today_year == this.year &&
                 today_month == this.month &&
                 today_day == i) {
-                cell.writeAttribute({ className: 'today' });
+                cell.writeAttribute({ className: 'hordeCalendarToday' });
             }
 
             if (open_year == this.year &&
                 open_month == this.month &&
                 open_day == i) {
-                cell.addClassName('current');
+                cell.addClassName('hordeCalendarCurrent');
             }
 
             row.insert(cell.insert(new Element('A', { href: '#' }).insert(i).observe('click', this.dayOnClick.bindAsEventListener(this))));
@@ -178,9 +178,9 @@ var Horde_Calendar =
 
         // IE 6 only.
         if (Prototype.Browser.IE && !window.XMLHttpRequest) {
-            iframe = $('iframe_tt');
+            iframe = $('hordeCalendarIframe');
             if (!iframe) {
-                iframe = new Element('IFRAME', { name: 'iframe_tt', id: 'iframe_tt', src: 'javascript:false;', scrolling: 'no', frameborder: 0 }).hide();
+                iframe = new Element('IFRAME', { name: 'hordeCalendarIframe', id: 'hordeCalendarIframe', src: 'javascript:false;', scrolling: 'no', frameborder: 0 }).hide();
                 document.body.appendChild(iframe);
             }
             iframe.clonePosition(div).setStyle({
@@ -203,9 +203,9 @@ var Horde_Calendar =
 
     hideCal: function()
     {
-        var iefix = $('ieframe_tt');
+        var iefix = $('hordeCalendarIframe');
 
-        $('horde-calendar').hide();
+        $('hordeCalendar').hide();
 
         if (iefix) {
             iefix.hide();
@@ -234,7 +234,7 @@ var Horde_Calendar =
     {
         var i, link, row,
             thead = new Element('THEAD'),
-            table = new Element('TABLE', { className: 'calendarPopup', cellSpacing: 0 }).insert(thead).insert(new Element('TBODY'));
+            table = new Element('TABLE', { className: 'hordeCalendarPopup', cellSpacing: 0 }).insert(thead).insert(new Element('TBODY'));
 
         // Title bar.
         link = new Element('A', { href: '#' }).insert('x');
@@ -276,7 +276,7 @@ var Horde_Calendar =
         }
         thead.insert(row);
 
-        $(document.body).insert({ bottom: new Element('DIV', { id: 'horde-calendar' }).setStyle({ position: 'absolute' }).hide().insert(table) });
+        $(document.body).insert({ bottom: new Element('DIV', { id: 'hordeCalendar' }).setStyle({ position: 'absolute' }).hide().insert(table) });
     }
 
 };
index 7e620d8..d8fef1b 100644 (file)
@@ -178,7 +178,7 @@ var Horde_Calendar = {
         var tbody = document.createElement('TBODY');
         table.appendChild(thead);
         table.appendChild(tbody);
-        table.className = 'calendarPopup';
+        table.className = 'hordeCalendarPopup';
         table.cellSpacing = 0;
 
         // Title bar.
@@ -330,15 +330,15 @@ var Horde_Calendar = {
             if (today_year == year &&
                 today_month == month &&
                 today_day == i) {
-                cell.className = 'today';
+                cell.className = 'hordeCalendarToday';
             }
             if (open_year == year &&
                 open_month == month &&
                 open_day == i) {
                 if (cell.className.length) {
-                    cell.className += ' current';
+                    cell.className += ' hordeCalendarCurrent';
                 } else {
-                    cell.className = 'current';
+                    cell.className = 'hordeCalendarCurrent';
                 }
             }
 
index 62acd89..3c81591 100644 (file)
@@ -123,7 +123,7 @@ option {
 }
 
 /* Calendar Popup. */
-.calendarPopup tbody {
+.hordeCalendarPopup tbody {
     text-align: left;
 }
 
index 1cbf72f..b18bd2e 100644 (file)
@@ -691,33 +691,33 @@ ul.sound-list {
 }
 
 /* Calendar Popup. */
-table.calendarPopup {
+.hordeCalendarPopup {
     border: 1px solid #ccc;
     background: #fff;
     width: 12em;
 }
-.calendarPopup thead {
+.hordeCalendarPopup thead {
     font-weight: bold;
 }
-.calendarPopup th {
+.hordeCalendarPopup th {
     border-bottom: 1px solid #ccc;
 }
-.calendarPopup tbody {
+.hordeCalendarPopup tbody {
     text-align: right;
 }
-.calendarPopup a {
+.hordeCalendarPopup a {
     color: #000;
     display: block;
     padding: 2px;
 }
-.calendarPopup tbody a:hover {
+.hordeCalendarPopup tbody a:hover {
     background: #ffc;
 }
-.calendarPopup .current {
+.hordeCalendarPopup .hordeCalendarCurrent {
     font-weight: bold;
     background: #eef;
 }
-.calendarPopup .today {
+.hordeCalendarPopup .hordeCalendarToday {
     font-weight: bold;
 }
 
index 1229bb1..ea4626c 100644 (file)
@@ -88,7 +88,7 @@ function openKGoto(d, event)
     var tbody = document.createElement('TBODY');
     table.appendChild(thead);
     table.appendChild(tbody);
-    table.className = 'calendarPopup';
+    table.className = 'hordeCalendarPopup';
     table.cellSpacing = 0;
 
     // Title.
@@ -254,7 +254,7 @@ function openKGoto(d, event)
         if (thisYear == year &&
             today.getMonth() == month &&
             today.getDate() == i) {
-            cell.className = 'today';
+            cell.className = 'hordeCalendarToday';
         }
         link = document.createElement('A');
         link.href = '<?php echo Horde::applicationUrl('day.php') ?>';
index d0db1b0..a58300d 100644 (file)
@@ -1419,7 +1419,7 @@ li.panel-tags {
     color: #000;
 }
 
-#color-picker, #horde-calendar {
+#color-picker, #hordeCalendar {
     z-index: 103;
 }