[fix] renammed bind to session_bind
bzr revid: nicolas.vanhoren@openerp.com-20120224145433-c5bunu2fuciqj2uc
This commit is contained in:
parent
4ff154c308
commit
7969c1f080
|
@ -1090,7 +1090,7 @@ openerp.web.WebClient = openerp.web.OldWidget.extend(/** @lends openerp.web.WebC
|
|||
self.$element.toggleClass('clark-gable');
|
||||
});
|
||||
}
|
||||
this.session.bind().then(function() {
|
||||
this.session.bind_session().then(function() {
|
||||
if (!self.session.session_is_valid()) {
|
||||
self.show_login();
|
||||
}
|
||||
|
@ -1258,7 +1258,7 @@ openerp.web.embed = function (origin, dbname, login, key, action, options) {
|
|||
var sc = document.getElementsByTagName('script');
|
||||
currentScript = sc[sc.length-1];
|
||||
}
|
||||
openerp.connection.bind(origin).then(function () {
|
||||
openerp.connection.bind_session(origin).then(function () {
|
||||
openerp.connection.session_authenticate(dbname, login, key, true).then(function () {
|
||||
var client = new openerp.web.EmbeddedClient(action, options);
|
||||
client.insertAfter(currentScript);
|
||||
|
|
|
@ -322,7 +322,7 @@ openerp.web.Connection = openerp.web.CallbackEnabled.extend( /** @lends openerp.
|
|||
this.name = openerp._session_id;
|
||||
this.qweb_mutex = new $.Mutex();
|
||||
},
|
||||
bind: function(origin) {
|
||||
bind_session: function(origin) {
|
||||
var window_origin = location.protocol+"//"+location.host, self=this;
|
||||
this.origin = origin ? _.str.rtrim(origin,'/') : window_origin;
|
||||
this.prefix = this.origin;
|
||||
|
|
Loading…
Reference in New Issue