From: Jan Schneider Date: Fri, 18 Jun 2010 17:15:57 +0000 (+0200) Subject: Don't allow empty calendar titles. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3b0af4c01f975a9861fc7506d09caa7797ef077e;p=horde.git Don't allow empty calendar titles. --- 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}'),