mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-09 13:14:14 +00:00
14 lines
335 B
JavaScript
14 lines
335 B
JavaScript
//add delete confirm dialog
|
|
var Del_url = '';
|
|
function addConfirmTo(ele) {
|
|
ele.each(function() {
|
|
$(this).click(function() {
|
|
$('#dialog-delete-confirm').modal({appendTo:'#main'});
|
|
Del_url = $(this).attr('data');
|
|
});
|
|
});
|
|
}
|
|
$('#yes-btn').click(function() {
|
|
location.href = Del_url;
|
|
});
|