Commit 48c97b9f by Kálmán Viktor

dashboard: unmodify stupid table source

parent ca0bfd33
...@@ -18,9 +18,7 @@ ...@@ -18,9 +18,7 @@
// ==================================================== // // ==================================================== //
// Do sorting when THs are clicked // Do sorting when THs are clicked
$table.on("click.stupidtable", "th, th a", function() { $table.on("click.stupidtable", "th", function() {
// handle click to links
// $table.on("click.stupidtable", "th", function() {
var $this = $(this); var $this = $(this);
var th_index = 0; var th_index = 0;
var dir = $.fn.stupidtable.dir; var dir = $.fn.stupidtable.dir;
...@@ -85,8 +83,6 @@ ...@@ -85,8 +83,6 @@
// More reliable method of forcing a redraw // More reliable method of forcing a redraw
$table.css("display"); $table.css("display");
}, 10); }, 10);
// this was added my be too - kviktor
return false;
}); });
}); });
}; };
......
...@@ -37,6 +37,10 @@ $(function() { ...@@ -37,6 +37,10 @@ $(function() {
// only if js is enabled // only if js is enabled
$(".template-list-table thead th").css("cursor", "pointer"); $(".template-list-table thead th").css("cursor", "pointer");
$(".template-list-table th a").on("click", function(event) {
event.preventDefault();
});
}); });
......
...@@ -175,9 +175,12 @@ $(function() { ...@@ -175,9 +175,12 @@ $(function() {
$(".vm-list-table thead th").eq(data.column).append(icon_html); $(".vm-list-table thead th").eq(data.column).append(icon_html);
}); });
//$(".vm-list-table thead th a").attr("href", "#");
// only if js is enabled // only if js is enabled
$(".vm-list-table thead th").css("cursor", "pointer"); $(".vm-list-table thead th").css("cursor", "pointer");
$(".vm-list-table th a").on("click", function(event) {
event.preventDefault();
});
}); });
function isAlreadySelected(vm) { function isAlreadySelected(vm) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment