X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpage%2Fheader.inc;h=d71f39fe29e55a12fa5d56e0c5c91264f2e6e5ea;hb=2f139f65da2e400350031bdbbeb44aa7ceeb66d8;hp=12b99eba88621902e141fb4f04fc4a4d03641b55;hpb=e3f700d1e11788f176bf02c7b9969780e66dc167;p=fa-stable.git diff --git a/includes/page/header.inc b/includes/page/header.inc index 12b99eba..d71f39fe 100644 --- a/includes/page/header.inc +++ b/includes/page/header.inc @@ -31,7 +31,11 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" { // titles and screen header global $db_connections, $path_to_root, $def_app, $applications, - $help_base_url, $help_page_url, $use_popup_windows; + $help_base_url, $help_page_url, $use_popup_windows, + $js_lib, $js_static, $js_path; + + if (isset($_GET['ajax'])) return; + $theme = user_theme(); $local_path_to_root = $path_to_root; @@ -44,6 +48,16 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" $js = get_js_open_window(900, 500); } + // javascript includes collect + add_js_source($js); + $js =''; + foreach($js_static as $jsfile) { + $js .= ''; + } + foreach($js_lib as $text) { + $js .= $text; + } if (!isset($no_menu)) { $no_menu = false; @@ -74,6 +88,8 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" echo ""; else echo ""; + echo "\n"; echo "\n"; echo "\n"; echo "
\n";