mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 12:47:11 +08:00
20 lines
471 B
JavaScript
20 lines
471 B
JavaScript
|
(function() {
|
||
|
'use strict';
|
||
|
|
||
|
// Show modal for repository deletion
|
||
|
$(document).on('click', '#delete-repo-option', function() {
|
||
|
var url = $(this).attr('href');
|
||
|
$.ajax({
|
||
|
method: 'GET',
|
||
|
url: url,
|
||
|
dataType: 'json'
|
||
|
}).done(function(xhr, settings, data) {
|
||
|
$('body').append($.parseHTML(data.responseJSON.html));
|
||
|
$('#delete-repo-modal').modal('show', {
|
||
|
backdrop: true,
|
||
|
keyboard: false
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
})();
|