1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #3748: Fix service roles and vms actions

This commit is contained in:
Daniel Molina 2015-07-03 17:43:25 +02:00
parent 0c77b23004
commit 7ab844639c
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ define(function(require) {
function roleElements() {
var selected_nodes = [];
var dataTable = $('#datatable_service_roles', '#'+TAB_ID+' #'+ROLES_PANEL_ID);
var dataTable = $('table[id^=datatable_roles]', '#'+TAB_ID+' #'+ROLES_PANEL_ID);
var nodes = $('tbody input.check_item:checked', dataTable);
$.each(nodes, function() {
selected_nodes.push($(this).val());
@ -31,7 +31,7 @@ define(function(require) {
function roleVMElements() {
var selected_nodes = [];
var dataTable = $('table[id^=datatable_service_vms]', '#'+TAB_ID+' #'+ROLES_PANEL_ID);
var dataTable = $('table[id^=datatable_vms]', '#'+TAB_ID+' #'+ROLES_PANEL_ID);
var nodes = $('tbody input.check_item:checked', dataTable);
$.each(nodes, function() {
selected_nodes.push($(this).val());
@ -477,4 +477,4 @@ define(function(require) {
};
return _actions;
});
});

View File

@ -51,7 +51,7 @@ define(function(require) {
var button = Sunstone.getButton(tabId, actionId);
var tip = Locale.tr("You have to confirm this action");
if (button.tip) {
if (button && button.tip) {
tip = button.tip
}