"added filemtime to force browser to reload javascript file after a modification"

This commit is contained in:
Ralf Becker 2009-03-24 09:33:28 +00:00
parent 9d55dfa69e
commit 21338a8327

View File

@ -15,7 +15,8 @@
$notification_config = config::read('notifications');
if ($notification_config['popup_enable']) {
$GLOBALS['egw']->translation->add_app('notifications');
echo '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/notifications/js/notificationajaxpopup.js'. '" type="text/javascript"></script>';
echo '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/notifications/js/notificationajaxpopup.js?'.
filemtime(EGW_SERVER_ROOT.'/notifications/js/notificationajaxpopup.js'). '" type="text/javascript"></script>';
echo '<script type="text/javascript">egwpopup_init();</script>';
echo '
<div id="egwpopup" style="display: none; z-index: 999;">