[FIX] website_sale: reload page after edit size
bzr revid: chm@openerp.com-20130927110146-obp9tcolk8pdq82x
This commit is contained in:
parent
da8c4e1be1
commit
45190a6f7d
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue