Remove notification immediately when snoozing.
authorJan Schneider <jan@horde.org>
Tue, 2 Mar 2010 18:25:09 +0000 (19:25 +0100)
committerJan Schneider <jan@horde.org>
Tue, 2 Mar 2010 23:02:33 +0000 (00:02 +0100)
kronolith/js/kronolith.js

index 256e6de..1dadde0 100644 (file)
@@ -169,13 +169,11 @@ KronolithCore = {
                 if (alarm.user) {
                     select.observe('change', function() {
                         if (select.getValue()) {
+                            this.Growler.ungrowl(growl);
                             new Ajax.Request(
                                 Kronolith.conf.URI_SNOOZE,
                                 { parameters: { alarm: alarm.id,
-                                                snooze: select.getValue() },
-                                  onSuccess: function() {
-                                      this.Growler.ungrowl(growl);
-                                  }.bind(this)});
+                                                snooze: select.getValue() } });
                         }
                     }.bind(this));
                 }