diff --git a/src/sunstone/public/js/plugins/users-tab.js b/src/sunstone/public/js/plugins/users-tab.js index 1b310fc385..f40e0c2af6 100644 --- a/src/sunstone/public/js/plugins/users-tab.js +++ b/src/sunstone/public/js/plugins/users-tab.js @@ -870,11 +870,8 @@ $(document).ready(function(){ //Also for group tab setupQuotaIcons(); - - initCheckAllBoxes(dataTable_users); tableCheckboxesListener(dataTable_users); - //shortenedInfoFields('#datatable_users'); infoListener(dataTable_users,'User.showinfo'); $('div#users_tab div.legend_div').hide(); diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js index 02672bf160..27ac5f4f45 100644 --- a/src/sunstone/public/js/sunstone-util.js +++ b/src/sunstone/public/js/sunstone-util.js @@ -734,25 +734,6 @@ function plot_graph(data,context,id_prefix,info){ $.plot($('#'+id, context),series,options); //call to flot lib } -//Enables showing full information on this type of fields on -//mouse hover -//Really nice for a user with many groups. Unused. -/* -function shortenedInfoFields(context){ - $('.shortened_info',context).live("mouseenter",function(e){ - var full_info = $(this).next(); - var top,left; - top = (e.pageY-15)+"px"; - left = (e.pageX+15)+"px"; - full_info.css({"top":top,"left":left}); - full_info.fadeIn(); - }); - - $('.shortened_info',context).live("mouseleave",function(e){ - $(this).next().fadeOut(); - }); -}*/ - //Prepares the dialog used to update the template of an element. function setupTemplateUpdateDialog(){ @@ -877,7 +858,13 @@ function infoListener(dataTable, info_action){ { popDialogLoading(); Sunstone.runAction(info_action,id); - // Take care of the coloring business + + // Take care of the coloring business + // (and the checking, do not forget the checking) + $('tbody input.check_item',$(this).parents('table')).removeAttr('checked'); + $('.check_item',this).click(); + $('td',$(this).parents('table')).removeClass('markrowchecked'); + if(last_selected_row) last_selected_row.children().each(function(){$(this).removeClass('markrowselected');}); last_selected_row = $("td:first", this).parent();