From 715594328eb0c8b86f644e7d9b3b2f49dac24a50 Mon Sep 17 00:00:00 2001 From: Conor Finegan Date: Wed, 12 Jul 2017 00:14:55 -0400 Subject: [PATCH] changed to trigger 'sorton', not 'click'. --- static/todos.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/todos.js b/static/todos.js index a232258..8848491 100644 --- a/static/todos.js +++ b/static/todos.js @@ -8,7 +8,7 @@ $(function() { row.style.display = "none"; } }); - $("table.packages > thead > tr > :nth-child(5)").trigger("click"); + $("table.packages").trigger("sorton", [[[4, 1]]]); } function removeFilter() { @@ -18,14 +18,14 @@ $(function() { row.style.display = ""; } }); - $("table.packages > thead > tr > :nth-child(2)").trigger("click"); + $("table.packages").trigger("sorton", [[[1, 0]]]); } var todoTotal = $("table.packages").data("todokey"); if (todoTotal > 0) { $("#todo-msg").html( - todoTotal + " todos. " + + todoTotal + " todos. " + " Click here to see them." );