From: Jan Schneider Date: Mon, 30 Nov 2009 22:43:16 +0000 (+0100) Subject: Hide "or" if "Cancel" is the only form button. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=be3f5fa918fa2fbc331c389e5561b14e50b00ba1;p=horde.git Hide "or" if "Cancel" is the only form button. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 6a7a3894d..aed627c2a 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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());