From 1cb428fdc87d2f993235c2ada7298b54e8fdb622 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Wed, 13 Mar 2013 15:41:00 +0100 Subject: [PATCH] feature #1664: Fix unselect on refresh bug --- src/sunstone/public/js/plugins/groups-tab.js | 116 ------------------- src/sunstone/public/js/sunstone-util.js | 1 + 2 files changed, 1 insertion(+), 116 deletions(-) diff --git a/src/sunstone/public/js/plugins/groups-tab.js b/src/sunstone/public/js/plugins/groups-tab.js index 9c6e38d836..879a553965 100644 --- a/src/sunstone/public/js/plugins/groups-tab.js +++ b/src/sunstone/public/js/plugins/groups-tab.js @@ -433,14 +433,6 @@ var group_buttons = { }; var group_info_panel = { - "group_info_tab" : { - title: tr("Group information"), - content:"" - }, -// "group_acct_tab" : { -// title: tr("Historical usages"), -// content: "" -// } }; var groups_tab = { @@ -573,33 +565,6 @@ function updateGroupsView(request, group_list){ function updateGroupInfo(request,group){ var info = group.GROUP; - var info_tab_html = '\ -
\ -
\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -
' + tr("Group information") + ' - '+info.NAME+'
' + tr("ID") + ''+info.ID+'
\ -
\ -
\ -
\ -
'; - - - var info_tab = { - title : tr("Information"), - content : info_tab_html - }; - - var quotas_tab_html = '
'; if (!$.isEmptyObject(info.VM_QUOTA)){ @@ -794,89 +759,8 @@ function updateGroupInfo(request,group){ }; Sunstone.updateInfoPanelTab("group_info_panel","group_quotas_tab",quotas_tab); - -// var acct_tab = { -// title : tr("Historical usages"), -// content : '
\ -// \ -// \ -// \ -// \ -//\ -//
\ -// \ -// \ -// \ -//
' + generateMonitoringDivs(group_acct_graphs, "group_acct_") -// }; - - Sunstone.updateInfoPanelTab("group_info_panel","group_info_tab",info_tab); -// Sunstone.updateInfoPanelTab("group_info_panel","group_acct_tab",acct_tab); Sunstone.popUpInfoPanel("group_info_panel"); - - //Enable datepicker - //var info_dialog = $('div#group_acct_tabTab'); - //$("#group_acct_from", info_dialog).datepicker({ - // defaultDate: "-1d", - // changeMonth: true, - // numberOfMonths: 1, - // dateFormat: "dd/mm/yy", - // defaultDate: '-1', - // onSelect: function( selectedDate ) { - // $( "#group_acct_to", info_dialog).datepicker("option", - // "minDate", - // selectedDate ); - // } - //}); - //$("#group_acct_from", info_dialog).datepicker('setDate', '-1'); -// - //$("#group_acct_to", info_dialog).datepicker({ - // defaultDate: "0", - // changeMonth: true, - // numberOfMonths: 1, - // dateFormat: "dd/mm/yy", - // maxDate: '+1', - // onSelect: function( selectedDate ) { - // $( "#group_acct_from", info_dialog).datepicker( "option", - // "maxDate", - // selectedDate ); - // } - //}); - //$("#group_acct_to", info_dialog).datepicker('setDate', 'Now'); -// - ////Listen to set date button - //$('button#group_acct_date_ok', info_dialog).click(function(){ - // var from = $("#group_acct_from", info_dialog).val(); - // var to = $("#group_acct_to", info_dialog).val(); -// - // var start = $.datepicker.parseDate('dd/mm/yy', from) - // if (start){ - // start = start.getTime(); - // start = Math.floor(start / 1000); - // } -// - // var end = $.datepicker.parseDate('dd/mm/yy', to); - // if (end){ - // end = end.getTime(); - // end = Math.floor(end / 1000); - // } -// - // loadAccounting('Group', info.ID, group_acct_graphs, - // { start : start, end: end }); - // return false; - //}); - //preload acct loadAccounting('Group', info.ID, group_acct_graphs); diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js index 30d8149986..850dbd67ce 100644 --- a/src/sunstone/public/js/sunstone-util.js +++ b/src/sunstone/public/js/sunstone-util.js @@ -451,6 +451,7 @@ function onError(request,error_json) { //Used when refreshing elements of a datatable. function waitingNodes(dataTable){ $('tr input.check_item:visible',dataTable).replaceWith(spinner); + recountCheckboxes(dataTable); }