Skip to content

Commit

Permalink
Remove the row instead of reload
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 10, 2017
1 parent f1b02e5 commit 2956784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Modules/Core/Assets/js/components/DeleteComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
deleteTitle: {default: "Confirmation"}
},
methods: {
deleteRow() {
deleteRow(event) {
this.$confirm(this.deleteMessage, this.deleteTitle, {
confirmButtonText: 'OK',
cancelButtonText: 'Cancel',
Expand All @@ -24,9 +24,7 @@
type: 'success',
message: response.data.message
});
setTimeout(function () {
location.reload();
}, 1000);
$(event.path[3]).remove();
}
})
.catch(function (error) {
Expand Down
6 changes: 2 additions & 4 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69060,7 +69060,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
deleteTitle: { default: "Confirmation" }
},
methods: {
deleteRow: function deleteRow() {
deleteRow: function deleteRow(event) {
var _this = this;

this.$confirm(this.deleteMessage, this.deleteTitle, {
Expand All @@ -69075,9 +69075,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
type: 'success',
message: response.data.message
});
setTimeout(function () {
location.reload();
}, 1000);
$(event.path[3]).remove();
}
}).catch(function (error) {
$self.$message({
Expand Down

0 comments on commit 2956784

Please sign in to comment.