Skip to content

Commit

Permalink
Update security.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Jan 25, 2024
1 parent ff74a03 commit f2b55e5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions upload/admin/view/template/common/security.twig
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ $(document).ready(function() {
});
$('#button-refresh').on('click', function() {
// Show modal
var modal = new bootstrap.Modal($('#modal-security'));
modal.show();
$('#modal-security').modal('show');
$('#accordion .accordion-header:first button').trigger('click');
});
Expand All @@ -160,7 +157,7 @@ $('#button-install').on('click', function() {
if (json['success']) {
$('#alert').prepend('<div class="alert alert-success alert-dismissible"><i class="fa-solid fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
modal.dispose();
$('#modal-security').modal('dispose');
$('#button-refresh').trigger('click');
}
Expand Down Expand Up @@ -203,7 +200,7 @@ $('#button-storage').on('click', function() {
$(element).button('reset');
modal.dispose();
$('#modal-security').modal('dispose');
$('#button-refresh').trigger('click');
}
Expand Down Expand Up @@ -249,7 +246,7 @@ $('#button-storage-delete').on('click', function() {
$('#security').load('index.php?route=common/security.list&token={{ user_token }}');
modal.dispose();
$('#modal-security').modal('dispose');
$('#button-refresh').trigger('click');
}
Expand Down Expand Up @@ -296,7 +293,7 @@ $('#button-admin').on('click', function() {
$(element).button('reset');
modal.dispose();
$('#modal-security').modal('dispose');
$('#button-refresh').trigger('click');
}
Expand Down Expand Up @@ -339,8 +336,8 @@ $('#button-admin-delete').on('click', function() {
if (json['success']) {
$('#alert').prepend('<div class="alert alert-success alert-dismissible"><i class="fa-solid fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
modal.dispose();
$('#modal-security').modal('dispose');
$('#button-refresh').trigger('click');
}
Expand Down

0 comments on commit f2b55e5

Please sign in to comment.