[FIX]Fixed the issue of IE8 in which Import functionality is not working.
authormsh-openerp <msh@tinyerp.com>
Tue, 28 Aug 2012 13:22:44 +0000 (18:52 +0530)
committermsh-openerp <msh@tinyerp.com>
Tue, 28 Aug 2012 13:22:44 +0000 (18:52 +0530)
bzr revid: msh@tinyerp.com-20120828132244-shc344j4smo0k4wa

addons/web/static/src/js/data_import.js

index bac8628..5c7fbbc 100644 (file)
@@ -18,7 +18,11 @@ function jsonp(form, attributes, callback) {
     attributes = attributes || {};
     var options = {jsonp: _.uniqueId('import_callback_')};
     window[options.jsonp] = function () {
-        delete window[options.jsonp];
+        try{
+            delete window[options.jsonp];
+        } catch(e){
+            window[options.jsonp] = null;
+        }
         callback.apply(null, arguments);
     };
     if ('data' in attributes) {