Projet

Général

Profil

0001-toolbar.js-add-next_url-parameter-to-mandaye_disasso.patch

Jérôme Schneider, 05 janvier 2015 18:25

Télécharger (1,03 ko)

Voir les différences:

Subject: [PATCH] toolbar.js: add next_url parameter to
 mandaye_disassociate_logout

Closes #6235
 mandaye/static/js/toolbar.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
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
-