summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/coresetup.js
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-06-15 13:37:06 +0200
committerAntony Lesuisse <al@openerp.com>2012-06-15 13:37:06 +0200
commiteac5591cacd6f8e66309024071106b97766cc922 (patch)
treecc3a1383dbee643e001a18b7a1105cdde61c95fb /addons/web/static/src/js/coresetup.js
parent77d954c4d9a76dc67cf2871ac906d88fce85482f (diff)
[FIX] reload after install
lp bug: https://launchpad.net/bugs/1011536 fixed bzr revid: al@openerp.com-20120615113706-ybb1nim66m3ft5c4
Diffstat (limited to 'addons/web/static/src/js/coresetup.js')
-rw-r--r--addons/web/static/src/js/coresetup.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js
index 42d4456d59a..9b40b62e825 100644
--- a/addons/web/static/src/js/coresetup.js
+++ b/addons/web/static/src/js/coresetup.js
@@ -620,13 +620,18 @@ instance.web.Reload = instance.web.Widget.extend({
this.menu_id = (params && params.menu_id) || false;
},
start: function() {
+ var l = window.location;
+ var timestamp = new Date().getTime();
+ var search = "?ts=" + timestamp;
+ if (l.search) {
+ search = l.search + "&ts=" + timestamp;
+ }
+ var hash = l.hash;
if (this.menu_id) {
- // open the given menu id
- var url_without_fragment = window.location.toString().split("#", 1)[0];
- window.location = url_without_fragment + "#menu_id=" + this.menu_id;
- } else {
- window.location.reload();
+ hash = "#menu_id=" + this.menu_id;
}
+ var url = l.protocol + "//" + l.host + l.pathname + search + hash;
+ window.location = url;
}
});