2014-11-17 17:33:47 +01:00

20 lines
677 B
JavaScript

(function(global) {
global.liveSyncPluginPage = function liveSyncPluginPage() {
$('.js-delete-agent').on('click', function(e) {
e.preventDefault();
var $this = $(this);
var msg = $T('Do you really want to delete this agent and all its queue entries?');
new ConfirmPopup($T('Delete this agent?'), msg, function(confirmed) {
if (!confirmed) {
return;
}
$('<form>', {
action: $this.data('href'),
method: 'post'
}).appendTo('body').submit();
}).open();
});
};
})(window);