Wrap some more js

This commit is contained in:
Nathan Gray 2013-04-01 22:19:10 +00:00
parent ef2a5d377d
commit a20f7651a0
2 changed files with 6 additions and 1 deletions

View File

@ -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) . '"';
}
}

View File

@ -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 .= "<script>window.setTimeout(function() {\$j('#$element_id').unchosen().chosen({placeholder_text: '".lang('Select multiple accounts')."'});},200); </script>";
$html .= "<script>egw.LAB.wait(function() {window.setTimeout(function() {\$j('#$element_id').unchosen().chosen({placeholder_text: '".lang('Select multiple accounts')."'});},200);}); </script>";
if($need_js_popup && !$GLOBALS['egw_info']['flags']['uiaccountsel']['addOption_installed'])
{
$html .= '<script language="JavaScript">