Fix notifications in preferences popup windows
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Oct 2009 19:40:59 +0000 (13:40 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Oct 2009 20:32:00 +0000 (14:32 -0600)
imp/pgp.php
imp/smime.php

index 6642dc9..fd64266 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 /**
+ * PGP preferences handling.
+ *
  * Copyright 2002-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -22,6 +24,11 @@ function _printKeyInfo($key = '')
 
 function _importKeyDialog($target)
 {
+    /* Need to handle notifications inline, and need to set explicitly since
+     * the popup window is not part of the preferences framework. */
+    $notification = Horde_Notification::singleton();
+    $notification->replace('status', array('prefs' => true, 'viewmode' => 'imp'), 'IMP_Notification_Listener_Status');
+
     $title = _("Import PGP Key");
     require IMP_TEMPLATES . '/common-header.inc';
     IMP::status();
index 677e1ae..dde17cb 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 /**
+ * S/MIME preferences handling.
+ *
  * Copyright 2002-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
 
 function _importKeyDialog($target)
 {
+    /* Need to handle notifications inline, and need to set explicitly since
+     * the popup window is not part of the preferences framework. */
+    $notification = Horde_Notification::singleton();
+    $notification->replace('status', array('prefs' => true, 'viewmode' => 'imp'), 'IMP_Notification_Listener_Status');
+
     $title = _("Import S/MIME Key");
     require IMP_TEMPLATES . '/common-header.inc';
     IMP::status();