forked from extern/egroupware
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: {
|
pixelegg: {
|
||||||
files: {
|
files: {
|
||||||
"pixelegg/js/fw_pixelegg.min.js": [
|
"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)
|
'etag' => Api\Translation::etag('notifications', Api\Translation::$userlang)
|
||||||
);
|
);
|
||||||
$popup_poll_interval = empty($notification_config['popup_poll_interval']) ? 60 : $notification_config['popup_poll_interval'];
|
$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?'.
|
$minjs = $GLOBALS['egw_info']['server']['debug_minify'] === 'True' ? '' : '.min';
|
||||||
filemtime(EGW_SERVER_ROOT.'/notifications/js/notificationajaxpopup.js').
|
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.
|
'" type="text/javascript" id="notifications_script_id" data-poll-interval="'.$popup_poll_interval.
|
||||||
'" data-langRequire="'. htmlspecialchars(json_encode($langRequire)).'"></script>';
|
'" data-langRequire="'. htmlspecialchars(json_encode($langRequire)).'"></script>';
|
||||||
echo '
|
echo '
|
||||||
|
Loading…
Reference in New Issue
Block a user