feature #1664: Selection in datatables works the same as other popular GUIs

This commit is contained in:
Tino Vazquez committed 2013-02-26 17:14:58 +01:00
1 parent 54a38d49cc
commit ea65595e2f
2 files changed
+7 -23

No files matched your search

@@ -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();
+7 -20
View File
@@ -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();