* Api: Fix mobile template not working with iOS < 10 anymore (iOS < 10 is not compatible with JS ES6)

This commit is contained in:
Hadi Nategh
2019-03-18 15:27:12 +01:00
parent fd662a266b
commit 2126fca1b4
5 changed files with 15 additions and 15 deletions

View File

@ -1939,7 +1939,7 @@ var AppJS = (function(){ "use strict"; return Class.extend(
}
// But merge into email can handle several
Promise.all(promises.map(p => p.catch(e => e)))
Promise.all(promises.map(function(p){p.catch(function(e){console.log(e)})}))
.then(function(values) {
// Process document after all shares created
return nm_action(_action, _senders, _target);

View File

@ -264,7 +264,7 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
/**
* resolve given data whilst the condition met
*/
const resolveData = function(_d, condition, action) {
var resolveData = function(_d, condition, action) {
var whilst = function (_d) {
return condition(_d) ? action(condition(_d)).then(whilst) : Promise.resolve(_d);
}
@ -274,7 +274,7 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
/**
* get data promise
*/
const getData = function(_match)
var getData = function(_match)
{
var match = _match;
return new Promise(function(resolve)