[FIX] jq_ajax: addapt code to new version of underscore.string
authorChristophe Simonis <chs@openerp.com>
Tue, 15 Nov 2011 16:10:16 +0000 (17:10 +0100)
committerChristophe Simonis <chs@openerp.com>
Tue, 15 Nov 2011 16:10:16 +0000 (17:10 +0100)
[IMP] jq_ajax: only show transport iframe in debug mode

bzr revid: chs@openerp.com-20111115161016-q1p2ne4zp1geui92

addons/web/static/src/js/jq_ajax.js

index 19c3bb3..611ab1e 100644 (file)
                         };
 
 
-                        $iframe = $(_("<iframe src='javascript:false;' name='%s' id='%s' style='display:block'></iframe>").sprintf(ifid, ifid));
+                        var display = options.openerp.debug ? 'block' : 'none';
+                        $iframe = $(_.str.sprintf("<iframe src='javascript:false;' name='%s' id='%s' style='display:%s'></iframe>", ifid, ifid, display));
 
 
                         // the first bind is fired up when the iframe is added to the DOM