From b3d08233f3960809c7a32091fa6368a2c1620b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 5 Nov 2013 11:54:28 +0100 Subject: [PATCH] change sorting of the overview node status in javascript --- puppetboard/static/coffeescript/tables.coffee | 11 +++++++++-- puppetboard/static/js/tables.js | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/puppetboard/static/coffeescript/tables.coffee b/puppetboard/static/coffeescript/tables.coffee index 137f11e..9b47f45 100644 --- a/puppetboard/static/coffeescript/tables.coffee +++ b/puppetboard/static/coffeescript/tables.coffee @@ -2,15 +2,22 @@ $ = jQuery $ -> $('.nodes').tablesorter( headers: - 3: + 4: sorter: false - sortList: [[0,0]] + sortList: [[1,0]] ) $('.facts').tablesorter( sortList: [[0,0]] ) +$('.dashboard').tablesorter( + headers: + 2: + sorter: false + sortList: [[0, 1]] +) + $('input.filter-table').parent('div').removeClass('hide') $("input.filter-table").on "keyup", (e) -> rex = new RegExp($(this).val(), "i") diff --git a/puppetboard/static/js/tables.js b/puppetboard/static/js/tables.js index a449ddd..ccac257 100644 --- a/puppetboard/static/js/tables.js +++ b/puppetboard/static/js/tables.js @@ -23,7 +23,7 @@ headers: { 2: { sorter: false } }, - sortList: [[0, 0]] + sortList: [[0, 1]] }); $('input.filter-table').parent('div').removeClass('hide');