mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +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 (!empty($data))
|
||||||
{
|
{
|
||||||
|
if($what == 'onLoad')
|
||||||
|
{
|
||||||
|
$js .= '"egw.LAB.wait(function() {'. htmlspecialchars($data).'})"';
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$js .= ' '.$what.'="' . htmlspecialchars($data) . '"';
|
$js .= ' '.$what.'="' . htmlspecialchars($data) . '"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -317,7 +317,7 @@ class uiaccountsel
|
|||||||
' title="'.html::htmlspecialchars(lang('Select multiple accounts')).'"','users','phpgwapi');
|
' title="'.html::htmlspecialchars(lang('Select multiple accounts')).'"','users','phpgwapi');
|
||||||
}
|
}
|
||||||
// jDots needs a little re-do, since it plays with the layout
|
// 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'])
|
if($need_js_popup && !$GLOBALS['egw_info']['flags']['uiaccountsel']['addOption_installed'])
|
||||||
{
|
{
|
||||||
$html .= '<script language="JavaScript">
|
$html .= '<script language="JavaScript">
|
||||||
|
Loading…
Reference in New Issue
Block a user