[FIX] website_sale: reload page after edit size

bzr revid: chm@openerp.com-20130927110146-obp9tcolk8pdq82x
This commit is contained in:
Christophe Matthieu 2013-09-27 13:01:46 +02:00
parent da8c4e1be1
commit 45190a6f7d
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ $(document).ready(function () {
var y = $td.parent().index()+1;
openerp.jsonRpc('/shop/change_size/', 'call', {'id': $data.data('id'), 'x': x, 'y': y})
.then(function () {
location.href = location.href.replace(/\?|$/, '?') + '&unable_editor=1';
var search = location.search.replace(/\?|$/, '?unable_editor=1&');
location.href = location.href.replace(/(\?|#).*/, search + location.hash);
});
});