6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/2/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9017] Ajax notifications too greedy
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . .. ,. .__ [__)|_/ \./ | [__) [__)| \ | |___|
Comment
> The only practical way of doing this that I can see is to define, in > each application's init() function, this pseudocode: > > if ($GLOBALS['registry']->initialApp == CURRENT_APP) { > $_SESSION['horde_notification']['override'] = ($is_ajax_view) > ? Ajax_Display_Handler > : null; > } > > The better solution would be to abstract all notification code out of > the framework libraries, create a Utility object that sits between > the injector and the Notification library, and then have the > initializing application doing something like: > $injector->getInstance('Horde_Notification')->setMode('ajax') > > setMode() would do the necessary push/pop of the Notification handlers.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers