toolbar.js: add next_url parameter to mandaye_disassociate_logout
Closes #6235
This commit is contained in:
parent
d7e0fffb12
commit
03b0828d64
|
@ -1,9 +1,16 @@
|
|||
function mandaye_disassociate_logout(url, account, id)
|
||||
function mandaye_disassociate_logout(url, account, id, next_url)
|
||||
{
|
||||
var r = confirm("Etes-vous sûr de vouloir désassocier le compte " + account + " ?");
|
||||
|
||||
if (r == true)
|
||||
{
|
||||
window.location = url + "?id=" + id;
|
||||
if (url.search(/\?/) > 0)
|
||||
url += "&id=" + id;
|
||||
else
|
||||
url += "?id=" + id;
|
||||
if (next_url)
|
||||
url += "&next_url=" + encodeURIComponent(next_url);
|
||||
window.location = url;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue