This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
mandaye/mandaye/static/js/toolbar.js

24 lines
540 B
JavaScript

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)
{
if (url.search(/\?/) > 0)
url += "&id=" + id;
else
url += "?id=" + id;
if (next_url)
url += "&next_url=" + encodeURIComponent(next_url);
window.location = url;
}
}
(function( $ ) {
$(function() {
$.get("/mandaye/toolbar", function(data) {
$("body").prepend(data);
});
});
})(mjQuery);