Close color picker when saving the calendar.
authorJan Schneider <jan@horde.org>
Mon, 21 Jun 2010 15:49:47 +0000 (17:49 +0200)
committerJan Schneider <jan@horde.org>
Mon, 21 Jun 2010 15:50:06 +0000 (17:50 +0200)
kronolith/js/kronolith.js

index 64cb6c2..ceb2d3e 100644 (file)
@@ -3325,6 +3325,9 @@ KronolithCore = {
      */
     saveCalendar: function(form)
     {
+        if (this.colorPicker) {
+            this.colorPicker.hide();
+        }
         var data = form.serialize({ hash: true });
         if (data.name.empty()) {
             this.showNotifications([ { type: 'horde.warning', message: data.type == 'tasklists' ? Kronolith.text.no_tasklist_title : Kronolith.text.no_calendar_title }]);