mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
* Notifications: Add refresh handler for notifications (click on Notifications header)
This commit is contained in:
parent
37e5e12c3c
commit
11c747ed20
@ -88,6 +88,14 @@
|
|||||||
CURRENT_INTERVAL = POLL_INTERVAL = notification_script && notification_script.getAttribute('data-poll-interval');
|
CURRENT_INTERVAL = POLL_INTERVAL = notification_script && notification_script.getAttribute('data-poll-interval');
|
||||||
TIMEOUT = this.setTimeout(POLL_INTERVAL || 60);
|
TIMEOUT = this.setTimeout(POLL_INTERVAL || 60);
|
||||||
jQuery('#notificationbell').click(jQuery.proxy(this.display, this));
|
jQuery('#notificationbell').click(jQuery.proxy(this.display, this));
|
||||||
|
|
||||||
|
// add click handler for refreshing Notifications
|
||||||
|
let $egwpopup_header = jQuery('#egwpopup_header')
|
||||||
|
.css({cursor:'pointer'})
|
||||||
|
.attr('title', egw.lang('Refresh Notifications'))
|
||||||
|
.click(jQuery.proxy(this.run_notifications, this));
|
||||||
|
$egwpopup_header.children('.button_right_toggle').attr('title', egw.lang('close'));
|
||||||
|
|
||||||
// query notifictions now
|
// query notifictions now
|
||||||
this.run_notifications();
|
this.run_notifications();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user