fixed ReferenceError: $j is not defined in old eTemplate popups

This commit is contained in:
Ralf Becker 2014-03-15 10:04:38 +00:00
parent 3a2132136b
commit 3e7ba51020

View File

@ -314,9 +314,14 @@ class etemplate_old extends boetemplate
if($output_mode == 2)
{
$html .= "\n".'<script language="javascript">'."\n";
$html .= 'egw_LAB.wait($j(document).ready(function() { popup_resize();}));'."\n";
$html .= '</script>';
$html .= '
<script language="javascript">
egw_LAB.wait(function(){
$j().ready(function() {
popup_resize();
});
});
</script>'."\n";
}
if (!$this->sitemgr && (int) $output_mode != 1 && (int) $output_mode != -1) // NOT returning html