Build new versioned files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
9
resources/js/app.js
vendored
9
resources/js/app.js
vendored
@ -121,7 +121,7 @@ $(document).ready(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
var $this = $(this),
|
||||
$row = $this.closest('tr');
|
||||
$row = $this.closest('tr, .action-container');
|
||||
|
||||
bootbox.confirm('Are you sure?', function(result) {
|
||||
if (!result) {
|
||||
@ -130,8 +130,11 @@ $(document).ready(function(e) {
|
||||
|
||||
axios.delete($row.data('url')).then(function(res) {
|
||||
if (res.data.success) {
|
||||
|
||||
$row.remove();
|
||||
if ($row.hasClass('action-container')) {
|
||||
window.location = '/';
|
||||
} else {
|
||||
$row.remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
|
Reference in New Issue
Block a user