From 3b0af4c01f975a9861fc7506d09caa7797ef077e Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 18 Jun 2010 19:15:57 +0200 Subject: [PATCH] Don't allow empty calendar titles. --- kronolith/js/kronolith.js | 20 +++++++++++++++++--- kronolith/lib/Kronolith.php | 2 ++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index ac2c890f1..e2a8ee469 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -217,7 +217,7 @@ KronolithCore = { case 'horde.message': case 'horde.success': this.Growler.growl( - m.flags.include('content.raw') + m.flags && m.flags.include('content.raw') ? m.message.replace(new RegExp(' _("Options"), 'shared' => _("Shared"), 'no_url' => _("You must specify a URL."), + 'no_calendar_title' => _("The calendar title must not be empty."), + 'no_tasklist_title' => _("The task list title must not be empty."), 'wrong_auth' => _("The authentication information you specified wasn't accepted."), 'geocode_error' => _("Unable to locate requested address"), 'wrong_date_format' => sprintf(_("You used an unknown date format \"%s\". Please try something like \"%s\"."), '#{wrong}', '#{right}'), -- 2.11.0