mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
20 lines
677 B
JavaScript
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);
|