From 4f3f88ae926874663fb6200026ff1de0b7729fd9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 28 Nov 2013 23:18:36 +0000 Subject: [PATCH] fixed not updated sidebox in calendar when using framed template-set, as sidebox is now transported as data attribute, we need to set it in or before header call --- phpgwapi/js/jsapi/egw.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index 485b17f63e..bab21dd2c0 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -151,6 +151,13 @@ window.app[appname] = new window.app.classes[appname](); } + // set sidebox for tabed templates + var sidebox = egw_script.getAttribute('data-setSidebox'); + if (window.framework && sidebox) + { + window.framework.setSidebox.apply(window.framework, JSON.parse(sidebox)); + } + // load et2 var data = egw_script.getAttribute('data-etemplate'); if (data)