We can't use let in js files as we still supporting old devices with es5 only

This commit is contained in:
Hadi Nategh 2020-09-17 15:36:02 +02:00
parent 6f38d53715
commit c01beef108
2 changed files with 3 additions and 3 deletions

View File

@ -218,7 +218,7 @@
} }
// set grants if given for push // set grants if given for push
let egw_grants = egw_script.getAttribute('data-grants'); var egw_grants = egw_script.getAttribute('data-grants');
if (egw_grants) if (egw_grants)
{ {
egw.set_grants(JSON.parse(egw_grants)); egw.set_grants(JSON.parse(egw_grants));

View File

@ -668,7 +668,7 @@
// proccess html their content. // proccess html their content.
if (_currentRawData.length>0 && _currentRawData.length == _rawData.length) return; if (_currentRawData.length>0 && _currentRawData.length == _rawData.length) return;
_currentRawData = _rawData; _currentRawData = _rawData;
let old_notifymessages = notifymessages; var old_notifymessages = notifymessages;
notifymessages = {}; notifymessages = {};
var browser_notify = _browser_notify || this.check_browser_notify(); var browser_notify = _browser_notify || this.check_browser_notify();
for (var i=0; i < _rawData.length; i++) for (var i=0; i < _rawData.length; i++)
@ -745,7 +745,7 @@
} }
} }
let egwpopup = document.getElementById('egwpopup'); var egwpopup = document.getElementById('egwpopup');
switch(egw.preference('egwpopup_verbosity', 'notifications')) switch(egw.preference('egwpopup_verbosity', 'notifications'))
{ {
case 'low': case 'low':