[FIX]Fixed the issue of IE8 in which Import functionality is not working.

bzr revid: msh@tinyerp.com-20120828132244-shc344j4smo0k4wa
This commit is contained in:
msh-openerp
2012-08-28 18:52:44 +05:30
parent cba457edb9
commit ee80f74be5
+5 -1
View 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) {