remove bootbox lib and unused code

This commit is contained in:
Mario
2025-11-07 14:52:30 +00:00
parent 498ef78e6f
commit 2233a0317e
4 changed files with 0 additions and 1008 deletions

View File

@@ -9,7 +9,6 @@ head_add_css('/library/bootstrap-tagsinput/bootstrap-tagsinput.css');
head_add_css('/library/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css');
head_add_js('/vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js');
head_add_js('/library/bootbox/bootbox.min.js');
head_add_js('/library/bootstrap-tagsinput/bootstrap-tagsinput.js');
head_add_js('/library/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js');

View File

@@ -632,22 +632,6 @@
$(this).closest('.jot-poll-option').remove();
}
$( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-delete-link,.block-delete-link", function(e) {
var link = $(this).attr("href"); // "get" the intended link in a var
if (typeof(eval($.fn.modal)) === 'function'){
e.preventDefault();
bootbox.confirm("<h4>{{$confirmdelete}}</h4>",function(result) {
if (result) {
document.location.href = link;
}
});
} else {
return confirm("{{$confirmdelete}}");
}
});
function postSaveChanges(action) {
if({{$auto_save_draft}}) {