[FIX] really solve reload problem

lp bug: https://launchpad.net/bugs/1214814 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130913124026-yhchgik5yznkme19
This commit is contained in:
niv-openerp 2013-09-13 14:40:26 +02:00
parent 56382a450a
commit 6d411f7065
1 changed files with 5 additions and 4 deletions

View File

@ -805,10 +805,11 @@ instance.web.redirect = function(url, wait) {
var load = function() {
var old = "" + window.location;
if (old === url) {
window.location.reload();
} else {
window.location.href = url;
var old_no_hash = old.split("#")[0];
var url_no_hash = url.split("#")[0];
location.assign(url);
if (old_no_hash === url_no_hash) {
location.reload(true);
}
};