diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-16 00:31:50 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-16 00:31:50 +0000 |
commit | c8ba33d38e0b331f15e918088d27c84432ece5f9 (patch) | |
tree | 0ad4b8b586b72b1443d8f31680f860134f507020 /horizon/static | |
parent | 76e0e08eb3404793eec57002ef484ef6a3506fdf (diff) | |
parent | 53bdad4cf7d6a2039c8de3bd41402824444d7837 (diff) | |
download | horizon-c8ba33d38e0b331f15e918088d27c84432ece5f9.tar.gz |
Merge "Ability to delete network items from their details page"
Diffstat (limited to 'horizon/static')
-rw-r--r-- | horizon/static/horizon/js/horizon.tables.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/horizon/static/horizon/js/horizon.tables.js b/horizon/static/horizon/js/horizon.tables.js index 9d6bea53f..f3df978f5 100644 --- a/horizon/static/horizon/js/horizon.tables.js +++ b/horizon/static/horizon/js/horizon.tables.js @@ -256,6 +256,14 @@ horizon.datatables.confirm = function(action) { name_string = " \"" + $action.closest("tr").attr("data-display") + "\""; name_array = [name_string]; } + } else{ + // Probably we are getting the action from a detail view, so we try to get + // the data-display from a dd element instead + $data_display = $('dd[data-display]'); + if($data_display.length > 0) { + name_string = ' "' + $('dd[data-display]').attr("data-display") + '"'; + name_array = [name_string]; + } } var title = interpolate(gettext("Confirm %s"), [action_string]); |