0001-toolbar.js-add-next_url-parameter-to-mandaye_disasso.patch
mandaye/static/js/toolbar.js | ||
---|---|---|
1 |
function mandaye_disassociate_logout(url, account, id) |
|
1 |
function mandaye_disassociate_logout(url, account, id, next_url)
|
|
2 | 2 |
{ |
3 | 3 |
var r = confirm("Etes-vous sûr de vouloir désassocier le compte " + account + " ?"); |
4 | ||
4 | 5 |
if (r == true) |
5 | 6 |
{ |
6 |
window.location = url + "?id=" + id; |
|
7 |
if (url.search(/\?/) > 0) |
|
8 |
url += "&id=" + id; |
|
9 |
else |
|
10 |
url += "?id=" + id; |
|
11 |
if (next_url) |
|
12 |
url += "&next_url=" + next_url; |
|
13 |
window.location = url; |
|
7 | 14 |
} |
8 | 15 |
} |
9 | 16 | |
10 |
- |