LSP - unsortable columns were sorting anyway -> disabled click event

This commit is contained in:
cat 2013-01-14 13:59:05 +01:00 committed by Thulinma
parent 3533187ed8
commit b919475630
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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, '') == '')
{ {