[ADD] website.reload()

bzr revid: fme@openerp.com-20130923115054-bvx1ssa3pag6d56x
This commit is contained in:
Fabien Meghazi 2013-09-23 13:50:54 +02:00
parent 6788b91af4
commit 366843b002
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@
});
return $.when.apply(null, dones);
};
website.reload = function () {
window.location.href = window.location.href.replace(/unable_editor(=[^&]*)?|#.*/g, '');
};
var all_ready = null;
var dom_ready = website.dom_ready = $.Deferred();