From c01beef108aef88d8bd9c2da7398000f950eafec Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 17 Sep 2020 15:36:02 +0200 Subject: [PATCH] We can't use let in js files as we still supporting old devices with es5 only --- api/js/jsapi/egw.js | 2 +- notifications/js/notificationajaxpopup.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/js/jsapi/egw.js b/api/js/jsapi/egw.js index 4e73cf521d..fdcd2440b0 100644 --- a/api/js/jsapi/egw.js +++ b/api/js/jsapi/egw.js @@ -218,7 +218,7 @@ } // 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) { egw.set_grants(JSON.parse(egw_grants)); diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index 355134e515..0fc682b40f 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -668,7 +668,7 @@ // proccess html their content. if (_currentRawData.length>0 && _currentRawData.length == _rawData.length) return; _currentRawData = _rawData; - let old_notifymessages = notifymessages; + var old_notifymessages = notifymessages; notifymessages = {}; var browser_notify = _browser_notify || this.check_browser_notify(); 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')) { case 'low':