[Mapbender-commits] r5892 - branches/3_dev/core/lib/js
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Apr 10 10:57:07 EDT 2010
Author: mh
Date: 2010-04-10 10:57:07 -0400 (Sat, 10 Apr 2010)
New Revision: 5892
Modified:
branches/3_dev/core/lib/js/ajax.js
Log:
$.post in jQuery 1.4.2 returns no json but object
Modified: branches/3_dev/core/lib/js/ajax.js
===================================================================
--- branches/3_dev/core/lib/js/ajax.js 2010-04-10 14:22:29 UTC (rev 5891)
+++ branches/3_dev/core/lib/js/ajax.js 2010-04-10 14:57:07 UTC (rev 5892)
@@ -194,7 +194,7 @@
internalError = true;
return;
}
- var resultObj = $.parseJSON(json);
+ var resultObj = typeof json !== "object" ? $.parseJSON(json) : json;
// some severe error has occured
if (typeof(resultObj) != "object" || status != "success") {
message = Mapbender.Ajax.Messages.fatalError;
More information about the Mapbender_commits
mailing list