summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/coresetup.js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-08-02 16:46:23 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-08-02 16:46:23 +0200
commit2c57c15491395e9edd0ad0cebcf3b12f6e02ee03 (patch)
treed72025bad6844a6e94bbe71c24a21dcb6a57d596 /addons/web/static/src/js/coresetup.js
parentd9aaf5c2d1efdb58e73f13e6c0279f9ef46f185c (diff)
[IMP] Mass rename \t to 4 spaces
bzr revid: nicolas.vanhoren@openerp.com-20120802144623-ykl5te005ytnv584
Diffstat (limited to 'addons/web/static/src/js/coresetup.js')
-rw-r--r--addons/web/static/src/js/coresetup.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js
index 0011b7c2450..2f2fb4f7832 100644
--- a/addons/web/static/src/js/coresetup.js
+++ b/addons/web/static/src/js/coresetup.js
@@ -393,13 +393,13 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess
timer = setTimeout(waitLoop, CHECK_INTERVAL);
},
synchronized_mode: function(to_execute) {
- var synch = this.synch;
- this.synch = true;
- try {
- return to_execute();
- } finally {
- this.synch = synch;
- }
+ var synch = this.synch;
+ this.synch = true;
+ try {
+ return to_execute();
+ } finally {
+ this.synch = synch;
+ }
}
});
@@ -540,10 +540,10 @@ $.async_when = function() {
// special tweak for the web client
var old_async_when = $.async_when;
$.async_when = function() {
- if (instance.connection.synch)
- return $.when.apply(this, arguments);
- else
- return old_async_when.apply(this, arguments);
+ if (instance.connection.synch)
+ return $.when.apply(this, arguments);
+ else
+ return old_async_when.apply(this, arguments);
};
/** Setup blockui */