From 07ff17704f1c437f5c0a91e76b091ad250cdae51 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 4 Nov 2013 18:57:20 +0000 Subject: [PATCH] Refresh current app or target app too, like it says it's supposed to --- phpgwapi/js/jsapi/jsapi.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpgwapi/js/jsapi/jsapi.js b/phpgwapi/js/jsapi/jsapi.js index 8ddfc8b89c..585f8230bd 100644 --- a/phpgwapi/js/jsapi/jsapi.js +++ b/phpgwapi/js/jsapi/jsapi.js @@ -243,6 +243,13 @@ function egw_refresh(_msg, _app, _id, _type, _targetapp, _replace, _with, _msg_t { et2[i].refresh(_msg,_app,_id,_type); } + + // Refresh target or current app too + var et2 = etemplate2.getByApplication(_targetapp || egw_appName); + for(var i = 0; i < et2.length; i++) + { + et2[i].refresh(_msg,_app,_id,_type); + } return; }