load login.js incl. cache-buster via Framework

This commit is contained in:
ralf 2024-01-15 10:07:39 +02:00
parent 99c7299340
commit 928fa6212b
4 changed files with 5 additions and 10 deletions

View File

@ -50,6 +50,8 @@ class Login
Api\Header\ContentSecurityPolicy::add('frame-src', 'none');
Api\Header\ContentSecurityPolicy::add('media-src', 'none');
Api\Framework::includeJS('/api/js/login.js?'.filemtime(EGW_SERVER_ROOT.'/api/js/login.js'));
//error_log(__METHOD__."() this->template=$this->framework->template, this->template_dir=$this->framework->template_dir, get_class(this)=".get_class($this));
try {
$tmpl = new Template(EGW_SERVER_ROOT.$this->framework->template_dir);

View File

@ -1,4 +1,3 @@
<script src="./api/js/login.js" type="text/javascript"></script>
<div id="loginMainDiv">
<div id="divAppIconBar" style="position:relative;">
<div id="divLogo"><a href="{logo_url}" target="_blank"><img src="{logo_file}" border="0" alt="{logo_title}" title="{logo_title}" /></a></div>
@ -94,4 +93,4 @@
</table>
</form>
</div>
</div>
</div>

View File

@ -1,6 +1,3 @@
<script src="./api/js/login.js" type="module"></script>
<div id="loginMainDiv" style="background-image:url({background_file})" class="{stock_background_class}">
<div class="egw_message_wrapper">
<div id="egw_message" class="{cd_class}">{cd}
@ -122,4 +119,4 @@
</div>
</div>
</div>
</div>

View File

@ -1,6 +1,3 @@
<script src="./api/js/login.js" type="text/javascript"></script>
<div id="loginMainDiv" style="background-image:url({background_file})" class="{stock_background_class}">
<div class="egw_message_wrapper">
<div id="egw_message" class="{cd_class}">{cd}
@ -121,4 +118,4 @@
<div id="login_footer">
</div>
</div>
</div>