[REF] web: remove dead code

This commit is contained in:
Géry Debongnie
2016-06-17 13:24:54 +02:00
parent cfe4b337af
commit 916b43afab
2 changed files with 0 additions and 20 deletions
@@ -43,17 +43,6 @@ var Throbber = Widget.extend({
},
});
// special tweak for the web client
var old_async_when = $.async_when;
$.async_when = function() {
if (session.synch)
return $.when.apply(this, arguments);
else
return old_async_when.apply(this, arguments);
};
/** Setup blockui */
if ($.blockUI) {
$.blockUI.defaults.baseZ = 1100;
@@ -266,15 +266,6 @@ var Session = core.Class.extend(mixins.EventDispatcherMixin, {
options.session = this;
ajax.get_file(options);
},
synchronized_mode: function(to_execute) {
var synch = this.synch;
this.synch = true;
try {
return to_execute();
} finally {
this.synch = synch;
}
},
/**
* (re)loads the content of a session: db name, username, user id, session
* context and status of the support contract