mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
remove bootbox lib and unused code
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -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}}) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user