[Mapbender-commits] r5391 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 21 06:25:56 EST 2010


Author: verenadiewald
Date: 2010-01-21 06:25:54 -0500 (Thu, 21 Jan 2010)
New Revision: 5391

Modified:
   trunk/mapbender/http/plugins/jq_upload.js
Log:
removed IE bug setting window.frames id to undefined

Modified: trunk/mapbender/http/plugins/jq_upload.js
===================================================================
--- trunk/mapbender/http/plugins/jq_upload.js	2010-01-21 10:37:08 UTC (rev 5390)
+++ trunk/mapbender/http/plugins/jq_upload.js	2010-01-21 11:25:54 UTC (rev 5391)
@@ -21,13 +21,13 @@
 					var msg = "";
 					var success = false;
 					if (returnValue.match(/_finished/)) {
-						delete window.frames[id + "_target"].id;
-						if (typeof options.callback === "function") {
+						window.frames[id + "_target"].id = undefined;
+							if (typeof options.callback === "function") {
 							options.callback(filename, true, "");						
 						}
 					}
 					else if (returnValue.match(/_cancelled/)) {
-						delete window.frames[id + "_target"].id;
+						window.frames[id + "_target"].id = undefined;
 						msg = "File upload cancelled.";
 						new Mb_exception(msg);		
 						if (typeof options.callback === "function") {



More information about the Mapbender_commits mailing list