mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-16 01:58:04 +02:00
setting webserver_url for new json handler, if used with templates other then jdots
This commit is contained in:
@ -699,6 +699,10 @@ abstract class egw_framework
|
|||||||
$java_script .= "<script type=\"text/javascript\">\nvar enable_ie_dropdownmenuhack=1;\n</script>\n";
|
$java_script .= "<script type=\"text/javascript\">\nvar enable_ie_dropdownmenuhack=1;\n</script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set webserver_url for json
|
||||||
|
$java_script .= "<script type=\"text/javascript\">\nwindow.egw_webserverUrl = '".
|
||||||
|
$GLOBALS['egw_info']['server']['webserver_url']."';\n</script>\n";
|
||||||
|
|
||||||
/* this flag is for all javascript code that has to be put before other jscode.
|
/* this flag is for all javascript code that has to be put before other jscode.
|
||||||
Think of conf vars etc... (pim@lingewoud.nl) */
|
Think of conf vars etc... (pim@lingewoud.nl) */
|
||||||
if (isset($GLOBALS['egw_info']['flags']['java_script_thirst']))
|
if (isset($GLOBALS['egw_info']['flags']['java_script_thirst']))
|
||||||
|
Reference in New Issue
Block a user