mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Wrap some more js
This commit is contained in:
parent
ef2a5d377d
commit
a20f7651a0
@ -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) . '"';
|
||||
}
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user