From be3f5fa918fa2fbc331c389e5561b14e50b00ba1 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 30 Nov 2009 23:43:16 +0100 Subject: [PATCH] Hide "or" if "Cancel" is the only form button. --- kronolith/js/kronolith.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()); -- 2.11.0