mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Add confirm dialog remove item VC
This commit is contained in:
parent
69e750da13
commit
f3dbf6391f
@ -1,5 +1,5 @@
|
||||
// TODO: Add Artica ST header.
|
||||
/* globals jQuery, VisualConsole, AsyncTaskManager, tinymce */
|
||||
/* globals jQuery, VisualConsole, AsyncTaskManager, confirmDialog */
|
||||
|
||||
/*
|
||||
* *********************
|
||||
@ -460,6 +460,10 @@ function createVisualConsole(
|
||||
var aux = item;
|
||||
var id = item.props.id;
|
||||
|
||||
confirmDialog({
|
||||
title: "Delete",
|
||||
message: "Are you sure?",
|
||||
onAccept: function() {
|
||||
item.remove();
|
||||
|
||||
var taskId = "visual-console-item-update-" + id;
|
||||
@ -497,6 +501,8 @@ function createVisualConsole(
|
||||
};
|
||||
})
|
||||
.init();
|
||||
}
|
||||
});
|
||||
},
|
||||
copyItem: function(item) {
|
||||
var id = item.props.id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user