Move calendar list to the bottom.
authorJan Schneider <jan@horde.org>
Wed, 4 Nov 2009 23:00:26 +0000 (00:00 +0100)
committerJan Schneider <jan@horde.org>
Wed, 4 Nov 2009 23:00:26 +0000 (00:00 +0100)
kronolith/js/kronolith.js
kronolith/templates/index/index.inc
kronolith/themes/screen.css

index ee484f4..1642275 100644 (file)
@@ -660,8 +660,6 @@ KronolithCore = {
         $('kronolithMinicalDate').store('date', date.dateString()).innerHTML = date.toString('MMMM yyyy');
 
         this.buildMinical($('kronolithMinical').down('tbody'), date, view);
-
-        $('kronolithMenuCalendars').setStyle({ 'bottom': $('kronolithMenuBottom').getHeight() + 'px' });
     },
 
     /**
index f4eca64..1df983c 100644 (file)
     <span id="kronolithQuickEvent" title="<?php echo _("Quick _insert") ?>">+</span>
   </div>
 
+  <div id="kronolithMinical" class="kronolithMinical">
+    <table cellspacing="1" cellpadding="0" border="0">
+    <caption>
+      <a id="kronolithMinicalPrev" title="<?php echo _("Previous month") ?>">&lt;</a>
+      <a id="kronolithMinicalNext" title="<?php echo _("Next month") ?>">&gt;</a>
+      <span id="kronolithMinicalDate"><?php echo $today->format('F Y') ?></span>
+    </caption>
+
+    <thead>
+      <tr>
+        <th class="kronolithMinicalEmpty">&nbsp;</th>
+        <?php for ($i = $prefs->getValue('week_start_monday'), $c = $i + 7; $i < $c; $i++): ?>
+        <th title="<?php echo Horde_Nls::getLangInfo(constant('DAY_' . ($i % 7 + 1))) ?>"><?php echo substr(Horde_Nls::getLangInfo(constant('DAY_' . ($i % 7 + 1))), 0, 1) ?></th>
+        <?php endfor; ?>
+      </tr>
+    </thead>
+
+    <tbody><tr><td></td></tr></tbody>
+    </table>
+  </div>
+
+  <h3 class="search">
+    <span><?php echo _("Search") ?></span>
+  </h3>
+
+  <form id="kronolithSearchForm" action="">
+    <input type="text" id="kronolithSearchTerm" />
+    <input id="kronolithSearchButton" type="button" value="OK" class="button ok" />
+    <input id="kronolithSearchAdvanced" type="button" value="+" class="button" />
+  </form>
+
   <div id="kronolithMenuCalendars">
   <h3 id="kronolithCalendarsFirst">
     <a href="#" class="kronolithAdd">+</a>
   </div>
   </div>
 
-  <div id="kronolithMenuBottom">
-  <div id="kronolithMinical" class="kronolithMinical">
-    <table cellspacing="1" cellpadding="0" border="0">
-    <caption>
-      <a id="kronolithMinicalPrev" title="<?php echo _("Previous month") ?>">&lt;</a>
-      <a id="kronolithMinicalNext" title="<?php echo _("Next month") ?>">&gt;</a>
-      <span id="kronolithMinicalDate"><?php echo $today->format('F Y') ?></span>
-    </caption>
-
-    <thead>
-      <tr>
-        <th class="kronolithMinicalEmpty">&nbsp;</th>
-        <?php for ($i = $prefs->getValue('week_start_monday'), $c = $i + 7; $i < $c; $i++): ?>
-        <th title="<?php echo Horde_Nls::getLangInfo(constant('DAY_' . ($i % 7 + 1))) ?>"><?php echo substr(Horde_Nls::getLangInfo(constant('DAY_' . ($i % 7 + 1))), 0, 1) ?></th>
-        <?php endfor; ?>
-      </tr>
-    </thead>
-
-    <tbody><tr><td></td></tr></tbody>
-    </table>
-  </div>
-
-  <h3 class="search">
-    <span><?php echo _("Search") ?></span>
-  </h3>
-
-  <form id="kronolithSearchForm" action="">
-    <input type="text" id="kronolithSearchTerm" />
-    <input id="kronolithSearchButton" type="button" value="OK" class="button ok" />
-    <input id="kronolithSearchAdvanced" type="button" value="+" class="button" />
-  </form>
-  </div>
 </div>
 <!-- end left menu -->
 
index 4e3985e..66190e9 100644 (file)
@@ -405,16 +405,13 @@ body.kronolithAjax {
 }
 #kronolithMenuCalendars {
     position: absolute;
-    top: 34px;
-    margin-bottom: 20px;
+    top: 295px;
+    bottom: 0;
+    width: 100%;
     overflow: auto;
     overflow-x: hidden;
     overflow-y: auto;
 }
-#kronolithMenuBottom {
-    position: absolute;
-    bottom: 0;
-}
 #kronolithMenu h3 {
     position: relative;
     margin-top: 15px;
@@ -426,9 +423,19 @@ body.kronolithAjax {
     border-bottom: 1px #000 dotted;
     cursor: default;
 }
+#kronolithMenu h3.search {
+    top: 15px;
+}
+#kronolithSearchForm {
+    position: relative;
+    top: 15px;
+}
 #kronolithMenu h3#kronolithCalendarsFirst {
     margin-top: 0;
 }
+#kronolithMenu div#kronolithHolidayCalendars {
+    margin-bottom: 0;
+}
 #kronolithMenu a.kronolithAdd {
     position: absolute;
     right: 0;
@@ -644,6 +651,9 @@ div#kronolithEventTopTags span:hover {
 .kronolithMinical {
     position: relative;
 }
+#kronolithMinical {
+    top: 15px;
+}
 .kronolithMinical table {
     width: 100%;
 }