-fixed up about tool-tip
-ui tweaks to manage users screen
This commit is contained in:
parent
5468db39e8
commit
14ee1f553e
5 changed files with 36 additions and 10 deletions
|
@ -147,6 +147,9 @@ $(document).ready(function() {
|
|||
"aaSorting": [[2,'asc']],
|
||||
"sPaginationType": "full_numbers",
|
||||
"bJQueryUI": true,
|
||||
"bAutoWidth": false
|
||||
"bAutoWidth": false,
|
||||
"oLanguage": {
|
||||
"sSearch": ""
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -32,7 +32,18 @@ function removeUserCallback(row_id, nRow){
|
|||
|
||||
function rowCallback( nRow, aData, iDisplayIndex ){
|
||||
$(nRow).click(function(){rowClickCallback(aData[0])});
|
||||
$('td:eq(2)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData[0], nRow)});
|
||||
$('td:eq(4)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData[0], nRow)});
|
||||
|
||||
if ( aData[4] == "A" )
|
||||
{
|
||||
$('td:eq(3)', nRow).html( 'Admin' );
|
||||
} else if ( aData[4] == "H" )
|
||||
{
|
||||
$('td:eq(3)', nRow).html( 'Host' );
|
||||
} else if ( aData[4] == "G" )
|
||||
{
|
||||
$('td:eq(3)', nRow).html( 'Guest' );
|
||||
}
|
||||
|
||||
return nRow;
|
||||
}
|
||||
|
@ -55,12 +66,17 @@ $(document).ready(function() {
|
|||
"aoColumns": [
|
||||
/* Id */ { "sName": "id", "bSearchable": false, "bVisible": false },
|
||||
/* user name */ { "sName": "login" },
|
||||
/* first name */ { "sName": "first_name" },
|
||||
/* last name */ { "sName": "last_name" },
|
||||
/* user type */ { "sName": "type", "bSearchable": false },
|
||||
/* del button */ { "sName": "null as delete", "bSearchable": false, "bSortable": false}
|
||||
],
|
||||
"bJQueryUI": true,
|
||||
"bAutoWidth": false,
|
||||
"bLengthChange": false
|
||||
"bLengthChange": false,
|
||||
"oLanguage": {
|
||||
"sSearch": ""
|
||||
}
|
||||
});
|
||||
|
||||
//$('#user_details').hide();
|
||||
|
|
|
@ -251,7 +251,14 @@ function init() {
|
|||
target: 'center',
|
||||
tooltip: 'topRight'
|
||||
}
|
||||
}
|
||||
},
|
||||
style: {
|
||||
border: {
|
||||
width: 0,
|
||||
radius: 4
|
||||
},
|
||||
name: 'light', // Use the default light style
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue