Projet

Général

Profil

« Précédent | Suivant » 

Révision 8f7e157d

Ajouté par Jérôme Schneider il y a plus de 9 ans

toolbar: manage offline toolbar

Voir les différences:

mandaye/static/js/toolbar.js
40 40
  httpReq.send();
41 41
}
42 42

  
43
function mandaye_disassociate_logout(account, id)
43
function mandaye_disassociate_logout(url, account, id)
44 44
{
45 45
  var r = confirm("Etes-vous sûr de vouloir désassocier le compte " + account + " ?");
46 46
  if (r == true)
47 47
  {
48
    window.location = "${urls['disassociate_url']}?id=" + id + "&logout=1";
48
    window.location = url + "?id=" + id;
49 49
  }
50 50
}
51 51

  
52
mandaye_load('/mandaye/toolbar', function(response) {
53
  var body = document.body || document.getElementsByTagName('body')[0];
54
  var div = document.createElement('div');
55
  div.innerHTML = response;
56
  body.insertBefore(div, body.childNodes[0]);
57
});
52
window.onload = function () {
53
  mandaye_load('/mandaye/toolbar', function(response) {
54
    var body = document.body || document.getElementsByTagName('body')[0];
55
    var div = document.createElement('div');
56
    div.innerHTML = response;
57
    body.insertBefore(div, body.childNodes[0]);
58
  });
59
}
58 60

  

Formats disponibles : Unified diff