mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 22:25:31 +02:00
More table-row highlighting fixes.
This commit is contained in:
@@ -689,7 +689,8 @@ class e_admin_response
|
||||
|
||||
$glue = deftrue('SEP',' - '); // Defined by admin theme. // admin-ui used only by bootstrap.
|
||||
|
||||
return $head. implode($glue, $content).$foot;
|
||||
return implode($glue, $content);
|
||||
// return $head. implode($glue, $content).$foot;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -31,7 +31,7 @@ min-height:50px;
|
||||
|
||||
tr.highlight-odd { background-color: #212121; }
|
||||
tr.highlight-even { background-color: #212121; }
|
||||
.table-striped tbody > tr.highlight-odd td { background-color: transparent }
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -776,6 +776,8 @@ ul#e-latest { line-height:17px }
|
||||
ul#e-latest li a span.badge { float:right;font-size:85% }
|
||||
ul#e-latest li a:hover { text-decoration: none; }
|
||||
|
||||
.table-striped tbody > tr.highlight-odd td { background-color: transparent }
|
||||
.table-striped tbody > tr.highlight-even td { background-color: transparent }
|
||||
/* Bootstrap tags input */
|
||||
.tags {
|
||||
display: inline-block;
|
||||
|
@@ -441,32 +441,15 @@ $(document).ready(function()
|
||||
// highlight checked row
|
||||
$(".adminlist input[type='checkbox']").click(function(evt){
|
||||
|
||||
var cls = $(this).closest("tr").attr('class');
|
||||
// alert(cls);
|
||||
|
||||
if(this.checked)
|
||||
{
|
||||
if(cls == 'odd' || cls == 'highlight-odd')
|
||||
{
|
||||
$(this).closest("tr").switchClass( "odd", "highlight-odd", 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
$(this).closest("tr").switchClass( "even", "highlight-even", 0 );
|
||||
}
|
||||
|
||||
|
||||
$(this).closest("tr.odd").switchClass( "odd", "highlight-odd", 50 );
|
||||
$(this).closest("tr.even").switchClass( "even", "highlight-even", 50 );
|
||||
}
|
||||
else
|
||||
{
|
||||
if(cls == 'highlight-odd' || cls =='odd')
|
||||
{
|
||||
$(this).closest("tr").switchClass( "highlight-odd", "odd", 300 );
|
||||
}
|
||||
else
|
||||
{
|
||||
$(this).closest("tr").switchClass( "highlight-even", "even", 300 );
|
||||
}
|
||||
$(this).closest("tr.highlight-odd").switchClass( "highlight-odd", "odd", 300 );
|
||||
$(this).closest("tr.highlight-even").switchClass( "highlight-even", "even", 300 );
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user