From: Michael M Slusarz Date: Wed, 29 Jul 2009 18:51:23 +0000 (-0600) Subject: Add IMAP alerts to ajax notify stack. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a23731e4179495327b9ba8b34829678e036d30ca;p=horde.git Add IMAP alerts to ajax notify stack. --- diff --git a/imp/ajax.php b/imp/ajax.php index 3410d47ef..ad59f76d2 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -782,5 +782,12 @@ if ($errors) { $errors, __FILE__, __LINE__, PEAR_LOG_DEBUG); } +/* Display IMAP alerts. */ +if ($notify) { + foreach ($GLOBALS['imp_imap']->ob->alerts() as $alert) { + $notification->push($alert, 'horde.warning'); + } +} + // Send the final result. Horde::sendHTTPResponse(Horde::prepareResponse($result, $notify ? $GLOBALS['imp_notify'] : null), 'json');