From a0471e1ad1a997c13ff52bff84e0bdf401a88f97 Mon Sep 17 00:00:00 2001 From: ralf Date: Sun, 9 Oct 2022 13:34:37 +0200 Subject: [PATCH] use egw.applyFunc instead of own/old code, to allow calling api methods eg. egw.start_timer too Setting now NO context for applyFunc so app objects are used/created in global context/window. This reverts commit 330461c28bbf5e54031942f52a29414d9e2e674e. --- api/js/egw_action/egw_action_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/egw_action/egw_action_common.js b/api/js/egw_action/egw_action_common.js index 8c87b02386..ac8d7cccb7 100644 --- a/api/js/egw_action/egw_action_common.js +++ b/api/js/egw_action/egw_action_common.js @@ -371,7 +371,7 @@ egwFnct.prototype.setValue = function(_value) { this.fnct = function() { - return egw.applyFunc(_value.substring(11), arguments, this); + return egw.applyFunc(_value.substring(11), arguments); } } else if (this.acceptedTypes.indexOf(typeof _value) >= 0)