LSP - unsortable columns were sorting anyway -> disabled click event
This commit is contained in:
parent
3533187ed8
commit
b919475630
2 changed files with 2 additions and 2 deletions
|
@ -655,7 +655,7 @@
|
||||||
refreshStreams();
|
refreshStreams();
|
||||||
|
|
||||||
$table = $('<table>');
|
$table = $('<table>');
|
||||||
$table.html("<thead><th class=sort-type-int>Id</th><th class=sort-type-string>Type</th><th>Embed</th><th class='sort-type-string sortdesc'>Name</th><th class=sort-type-string>Status</th><th class=sort-type-int>Viewers</th><th>Edit</th></thead>");
|
$table.html("<thead><th class=sort-type-int>Id</th><th class=sort-type-string>Type</th><th class=dontsort>Embed</th><th class='sort-type-string sortdesc'>Name</th><th class=sort-type-string>Status</th><th class=sort-type-int>Viewers</th><th class=dontsort>Edit</th></thead>");
|
||||||
$tbody = $('<tbody>');
|
$tbody = $('<tbody>');
|
||||||
|
|
||||||
var stream, cstr, $tr;
|
var stream, cstr, $tr;
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
// ==================================================== //
|
// ==================================================== //
|
||||||
// Do sorting when THs are clicked
|
// Do sorting when THs are clicked
|
||||||
|
|
||||||
table.delegate("th", "click", function(){
|
table.delegate("th:not(.dontsort)", "click", function(){
|
||||||
|
|
||||||
if($(this).text().replace(/ /g, '') == '')
|
if($(this).text().replace(/ /g, '') == '')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue