You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I simply click the th element the sorting works fine, but if the th contains a link and I click that it follows the link. I modified the source to this and it seems to work this way, is there a better way to solve this issue?
@@ -18,7 +18,7 @@
// ==================================================== //
// Do sorting when THs are clicked
- $table.on("click.stupidtable", "th", function() {
+ $table.on("click.stupidtable", "th, th a", function() {
var $this = $(this);
var th_index = 0;
var dir = $.fn.stupidtable.dir;
@@ -83,6 +83,7 @@
// More reliable method of forcing a redraw
$table.css("display");
}, 10);
+ return false;
});
});
};
The text was updated successfully, but these errors were encountered:
When I simply click the th element the sorting works fine, but if the th contains a link and I click that it follows the link. I modified the source to this and it seems to work this way, is there a better way to solve this issue?
The text was updated successfully, but these errors were encountered: