mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Add notifications into minifying js files
This commit is contained in:
parent
250b56589c
commit
9834da71d0
@ -247,6 +247,13 @@ module.exports = function (grunt) {
|
||||
]
|
||||
}
|
||||
},
|
||||
notifications: {
|
||||
files: {
|
||||
"notifications/js/notificationajaxpopup.min.js":[
|
||||
"notifications/js/notificationajaxpopup.js"
|
||||
]
|
||||
}
|
||||
},
|
||||
pixelegg: {
|
||||
files: {
|
||||
"pixelegg/js/fw_pixelegg.min.js": [
|
||||
|
@ -25,8 +25,9 @@ if ($GLOBALS['egw_info']['user']['apps']['notifications'])
|
||||
'etag' => Api\Translation::etag('notifications', Api\Translation::$userlang)
|
||||
);
|
||||
$popup_poll_interval = empty($notification_config['popup_poll_interval']) ? 60 : $notification_config['popup_poll_interval'];
|
||||
echo '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/notifications/js/notificationajaxpopup.js?'.
|
||||
filemtime(EGW_SERVER_ROOT.'/notifications/js/notificationajaxpopup.js').
|
||||
$minjs = $GLOBALS['egw_info']['server']['debug_minify'] === 'True' ? '' : '.min';
|
||||
echo '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/notifications/js/notificationajaxpopup'.$minjs.'.js?'.
|
||||
filemtime(EGW_SERVER_ROOT.'/notifications/js/notificationajaxpopup'.$minjs.'.js').
|
||||
'" type="text/javascript" id="notifications_script_id" data-poll-interval="'.$popup_poll_interval.
|
||||
'" data-langRequire="'. htmlspecialchars(json_encode($langRequire)).'"></script>';
|
||||
echo '
|
||||
|
Loading…
Reference in New Issue
Block a user