Hide "or" if "Cancel" is the only form button.
authorJan Schneider <jan@horde.org>
Mon, 30 Nov 2009 22:43:16 +0000 (23:43 +0100)
committerJan Schneider <jan@horde.org>
Mon, 30 Nov 2009 22:43:37 +0000 (23:43 +0100)
kronolith/js/kronolith.js

index 6a7a389..aed627c 100644 (file)
@@ -1964,6 +1964,11 @@ KronolithCore = {
         } else {
             $('kronolithTaskDelete').hide();
         }
+        if (task.pe || task.pd) {
+            $('kronolithTaskForm').down('.kronolithFormActions').down('.kronolithSep').show();
+        } else {
+            $('kronolithTaskForm').down('.kronolithFormActions').down('.kronolithSep').hide();
+        }
 
         this.setTitle(task.n);
         RedBox.showHtml($('kronolithTaskDialog').show());
@@ -3312,6 +3317,11 @@ KronolithCore = {
         } else {
             $('kronolithEventDelete').hide();
         }
+        if (ev.pe || ev.pd) {
+            $('kronolithEventForm').down('.kronolithFormActions').down('.kronolithSep').show();
+        } else {
+            $('kronolithEventForm').down('.kronolithFormActions').down('.kronolithSep').hide();
+        }
 
         this.setTitle(ev.t);
         RedBox.showHtml($('kronolithEventDialog').show());