forked from extern/egroupware
fixed bug reported by Raphael Alla: registered javascript files get lost if etemplate loops
This commit is contained in:
parent
ff5c696a71
commit
d77a1d2b33
@ -326,6 +326,7 @@
|
|||||||
'java_script' => $GLOBALS['egw_info']['etemplate']['java_script'],
|
'java_script' => $GLOBALS['egw_info']['etemplate']['java_script'],
|
||||||
'java_script_from_flags' => $GLOBALS['egw_info']['flags']['java_script'],
|
'java_script_from_flags' => $GLOBALS['egw_info']['flags']['java_script'],
|
||||||
'java_script_body_tags' => $GLOBALS['egw']->js->body,
|
'java_script_body_tags' => $GLOBALS['egw']->js->body,
|
||||||
|
'java_script_files' => $GLOBALS['egw']->js->files,
|
||||||
'include_xajax' => $GLOBALS['egw_info']['flags']['include_xajax'],
|
'include_xajax' => $GLOBALS['egw_info']['flags']['include_xajax'],
|
||||||
'dom_enabled' => $GLOBALS['egw_info']['etemplate']['dom_enabled'],
|
'dom_enabled' => $GLOBALS['egw_info']['etemplate']['dom_enabled'],
|
||||||
'hooked' => $hooked ? $hooked : $GLOBALS['egw_info']['etemplate']['hook_content'],
|
'hooked' => $hooked ? $hooked : $GLOBALS['egw_info']['etemplate']['hook_content'],
|
||||||
@ -488,6 +489,15 @@ foreach($sess as $key => $val)
|
|||||||
$GLOBALS['egw']->js->body[$tag] .= $code;
|
$GLOBALS['egw']->js->body[$tag] .= $code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (is_array($session_data['java_script_files']))
|
||||||
|
{
|
||||||
|
if( !is_object($GLOBALS['egw']->js))
|
||||||
|
{
|
||||||
|
$GLOBALS['egw']->js =& CreateObject('phpgwapi.javascript');
|
||||||
|
}
|
||||||
|
$GLOBALS['egw']->js->files = !is_array($GLOBALS['egw']->js->files) ? $session_data['java_script_files'] :
|
||||||
|
$this->complete_array_merge($GLOBALS['egw']->js->files,$session_data['java_script_files']);
|
||||||
|
}
|
||||||
|
|
||||||
//echo "<p>process_exec($this->name): <font color=red>loop is set</font>, content=</p>\n"; _debug_array($content);
|
//echo "<p>process_exec($this->name): <font color=red>loop is set</font>, content=</p>\n"; _debug_array($content);
|
||||||
return $this->exec($session_data['method'],$session_data['content'],$session_data['sel_options'],
|
return $this->exec($session_data['method'],$session_data['content'],$session_data['sel_options'],
|
||||||
@ -1015,8 +1025,9 @@ foreach($sess as $key => $val)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'html': // size: [link],[link_target],[link_popup_size],[link_title]
|
case 'html': // size: [link],[link_target],[link_popup_size],[link_title],[activate_links]
|
||||||
list($extra_link,$extra_link_target,$extra_link_popup,$extra_link_title) = explode(',',$cell_options);
|
list($extra_link,$extra_link_target,$extra_link_popup,$extra_link_title,$activate_links) = explode(',',$cell_options);
|
||||||
|
if ($activate_links) $value = $this->html->activate_links($value);
|
||||||
$html .= $value;
|
$html .= $value;
|
||||||
break;
|
break;
|
||||||
case 'int': // size: [min],[max],[len],[precission/sprint format]
|
case 'int': // size: [min],[max],[len],[precission/sprint format]
|
||||||
|
Loading…
Reference in New Issue
Block a user