diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-12-19 03:54:29 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-12-19 03:54:29 +0100 |
| commit | 061dc8ed4822cf3c5ca0da61015d54e83015b15a (patch) | |
| tree | 113f9032440c286fe10cee64d0a6fa4d9e6d054f /addons/web/static/src/js/coresetup.js | |
| parent | 9013f54e145acc958f918cd587e6d8d81cbed171 (diff) | |
| parent | 7826bd85f8e2bee372b3e0df9f2a30eb84a116b6 (diff) | |
[MERGE] merge trunk-owp-648324
bzr revid: al@openerp.com-20121219025429-h4wn6tlhtvn2xpzg
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; |
