[BS5] add responsive tabs and more
This commit is contained in:
@@ -318,6 +318,7 @@ $(document).ready(function() {
|
||||
|
||||
// General API delete actions
|
||||
$(document).on('click', "[data-action='delete_selected']", function(e) {
|
||||
console.log("delete");
|
||||
e.preventDefault();
|
||||
var id = $(this).data('id');
|
||||
// If clicked element #delete_selected has data-item attribute, it is added to "items"
|
||||
@@ -336,6 +337,7 @@ $(document).ready(function() {
|
||||
if (typeof multi_data[id] == "undefined" || multi_data[id] == "") return;
|
||||
data_array = multi_data[id];
|
||||
api_url = $(this).data('api-url');
|
||||
console.log("delete modal");
|
||||
$(document).on('show.bs.modal', '#ConfirmDeleteModal', function() {
|
||||
$("#ItemsToDelete").empty();
|
||||
for (var i in data_array) {
|
||||
@@ -343,10 +345,7 @@ $(document).ready(function() {
|
||||
$("#ItemsToDelete").append("<li>" + data_array[i] + "</li>");
|
||||
}
|
||||
})
|
||||
$('#ConfirmDeleteModal').modal({
|
||||
backdrop: 'static',
|
||||
keyboard: false
|
||||
})
|
||||
$('#ConfirmDeleteModal').modal('show')
|
||||
.one('click', '#IsConfirmed', function(e) {
|
||||
if (is_active($('#IsConfirmed'))) { return false; }
|
||||
$.ajax({
|
||||
|
Reference in New Issue
Block a user