From a20f7651a092bcd89be032467bbacbef9c3a3ef0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 1 Apr 2013 22:19:10 +0000 Subject: [PATCH] Wrap some more js --- phpgwapi/inc/class.egw_framework.inc.php | 5 +++++ phpgwapi/inc/class.uiaccountsel.inc.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 870e2a4867..59c9546ed0 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -1224,6 +1224,11 @@ window.egw.LAB.script( { if (!empty($data)) { + if($what == 'onLoad') + { + $js .= '"egw.LAB.wait(function() {'. htmlspecialchars($data).'})"'; + continue; + } $js .= ' '.$what.'="' . htmlspecialchars($data) . '"'; } } diff --git a/phpgwapi/inc/class.uiaccountsel.inc.php b/phpgwapi/inc/class.uiaccountsel.inc.php index 6c8d0495c2..418338fc03 100644 --- a/phpgwapi/inc/class.uiaccountsel.inc.php +++ b/phpgwapi/inc/class.uiaccountsel.inc.php @@ -317,7 +317,7 @@ class uiaccountsel ' title="'.html::htmlspecialchars(lang('Select multiple accounts')).'"','users','phpgwapi'); } // jDots needs a little re-do, since it plays with the layout - $html .= ""; + $html .= ""; if($need_js_popup && !$GLOBALS['egw_info']['flags']['uiaccountsel']['addOption_installed']) { $html .= '