Commit 0c89bc5e authored by Leigh Stoller's avatar Leigh Stoller

Add Delete Node to listview context menu.

parent f5e2d0bc
......@@ -1329,6 +1329,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
" <li><a href='#' name='console'>Console</a></li> " +
" <li><a href='#' name='consolelog'>Console Log</a></li> " +
" <li><a href='#' name='snapshot'>Snapshot</a></li> " +
" <li><a href='#' name='delete'>Delete Node</a></li> " +
" </ul>" +
" </div>" +
" </td>" +
......@@ -1487,6 +1488,13 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
.click(function (e) {
ActionHandler("snapshot", [node]);
});
//
// Ditto the delete button,
//
$('#listview-row-' + node + ' [name=delete]')
.click(function (e) {
ActionHandler("delete", [node]);
});
/*
* Make a copy of the master context menu and init.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment