Merged in [10615] from lars@netapp.com:
Disable the URL-based sorting stuff that uses the django backend if we use
js-based sorting.
- Legacy-Id: 10645
Note: SVN reference [10615] has been migrated to Git commit b90208ec6d
This commit is contained in:
parent
79f49fe60c
commit
8f7ebb83f7
|
@ -243,9 +243,10 @@ $(document).ready(function () {
|
|||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
// customize the styling a bit; more is done in ietf.css
|
||||
$(document).ready(function () {
|
||||
// if there is a sortable table on the page
|
||||
if ($(".tablesorter").length) {
|
||||
// customize the styling a bit; more is done in ietf.css
|
||||
$.tablesorter.themes.bootstrap = {
|
||||
table: "",
|
||||
iconSortNone: "bootstrap-icon-unsorted",
|
||||
|
@ -253,12 +254,15 @@ $(function() {
|
|||
iconSortDesc: "glyphicon glyphicon-chevron-down",
|
||||
hover: "active"
|
||||
};
|
||||
// disable the URL-based sorting stuff that uses the django backend
|
||||
$(".tablesorter thead a").contents().unwrap();
|
||||
// make the table sortable
|
||||
$(".tablesorter").tablesorter({
|
||||
emptyTo: "zero",
|
||||
theme: "bootstrap",
|
||||
table: "",
|
||||
headerTemplate: "{content} {icon}",
|
||||
widgets: ["uitheme", "sort2Hash"]
|
||||
widgets: ["uitheme"]
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue