diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-12-19 10:01:28 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-12-19 10:01:28 +0100 |
| commit | fe843951277f772988571dcfec7825b76e3bcf5d (patch) | |
| tree | 36e90ad911474f4a933abb170c0e3d40d2c70a45 /addons/web/static/src/js/coresetup.js | |
| parent | c3e74781ca3976d2ec919cd2a4085ca97e2fba17 (diff) | |
| parent | 56248183fc87b8eba9af50acddc81087a84bc34b (diff) | |
[MERGE] trunk
bzr revid: fme@openerp.com-20121219090128-m5z0l5rlee8mu6hj
Diffstat (limited to 'addons/web/static/src/js/coresetup.js')
| -rw-r--r-- | addons/web/static/src/js/coresetup.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index c88e0ca0512..eac26520301 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -30,6 +30,12 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess * Setup a sessionm */ session_bind: function(origin) { + if (!_.isUndefined(this.origin)) { + if (this.origin === origin) { + return $.when(); + } + throw new Error('Session already bound to ' + this.origin); + } var self = this; this.setup(origin); instance.web.qweb.default_dict['_s'] = this.origin; |
