Reversed most changes made for egw-stylite #8295, commited changes proposed by Ingo Ratsdorf in egroupware.org #2834, probably fixes egroupware.org #2831

This commit is contained in:
Andreas Stöckel
2011-02-04 14:28:12 +00:00
parent 3e00917ddb
commit 0d88ac8799
4 changed files with 7 additions and 45 deletions

View File

@ -219,8 +219,10 @@ egw_json_request.prototype._assembleAjaxUrl = function(_menuaction)
// Retrieve the webserver url
var webserver_url = egw_topWindow().egw_webserverUrl;
// Check whether the webserver_url is really set
if (!webserver_url)
// Check whether the webserver_url is really set
// Don't check for !webserver_url as it might be empty.
// Thank you to Ingo Ratsdorf for reporting this.
if (typeof webserver_url == "undefined")
{
throw "Internal JS error, top window not found, webserver url could not be retrieved.";
}