mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
remove (unnecessary) import statements and fix url for notificationpopup
This commit is contained in:
parent
a63b82d34e
commit
29acd3ddc9
@ -25,9 +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'];
|
||||
$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').
|
||||
$path = '/notifications/js/notificationajaxpopup';
|
||||
$path .= file_exists(EGW_SERVER_ROOT.$path.'.min.js') ? '.min.js' : '.js';
|
||||
echo '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. $path.'?'.filemtime(EGW_SERVER_ROOT.$path).
|
||||
'" type="module" id="notifications_script_id" data-poll-interval="'.$popup_poll_interval.
|
||||
'" data-langRequire="'. htmlspecialchars(json_encode($langRequire)).'"></script>';
|
||||
echo '
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import "../../api/js/jsapi/egw_ready.js";
|
||||
import "../../api/js/framework/fw_base.js";
|
||||
/**
|
||||
* Installs app.notifications used to poll notifications from server and display them
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user