summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome.js
diff options
context:
space:
mode:
authorvta vta@openerp.com <>2012-10-12 15:14:27 +0200
committervta vta@openerp.com <>2012-10-12 15:14:27 +0200
commit9f3198d00a7d0660e805147d5ca8e6b02575fad9 (patch)
treeef6778a61ddddbfa515be131ec4879f102d3ed37 /addons/web/static/src/js/chrome.js
parent48118a7afe17c45aa331511db6f0152ca7d7c0e1 (diff)
parent49c1c88962dbd4c47fefa33d190a8a6ff6b940c2 (diff)
[MERGE] Latest trunk.
bzr revid: vta@openerp.com-20121012131427-rr9cl2ausnraogfg
Diffstat (limited to 'addons/web/static/src/js/chrome.js')
-rw-r--r--addons/web/static/src/js/chrome.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js
index 99e1a67f51b..968b1acb0de 100644
--- a/addons/web/static/src/js/chrome.js
+++ b/addons/web/static/src/js/chrome.js
@@ -1019,15 +1019,13 @@ instance.web.WebClient = instance.web.Client.extend({
var state = $.bbq.getState(true);
var action = {
- 'type': 'ir.actions.client',
- 'tag': 'login',
- 'params': state
+ type: 'ir.actions.client',
+ tag: 'login',
+ _push_me: false,
};
this.action_manager.do_action(action);
this.action_manager.inner_widget.on('login_successful', this, function() {
- this.do_push_state(state);
- this._current_state = null; // ensure the state will be loaded
this.show_application(); // will load the state we just pushed
});
},
@@ -1103,6 +1101,7 @@ instance.web.WebClient = instance.web.Client.extend({
});
});
} else {
+ state._push_me = false; // no need to push state back...
this.action_manager.do_load_state(state, !!this._current_state);
}
}