From 846c90bc8f86d15e12e279a77235f343148caa9d Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Fri, 30 Aug 2013 02:11:26 -0400 Subject: [PATCH] fixing select all/none button --- .../js/airtime/playouthistory/historytable.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/airtime_mvc/public/js/airtime/playouthistory/historytable.js b/airtime_mvc/public/js/airtime/playouthistory/historytable.js index 1ce0e5fd6..a118ba566 100644 --- a/airtime_mvc/public/js/airtime/playouthistory/historytable.js +++ b/airtime_mvc/public/js/airtime/playouthistory/historytable.js @@ -269,9 +269,9 @@ var AIRTIME = (function(AIRTIME) { $.i18n._("Select")+" " + "" + "" + ""); @@ -396,11 +396,7 @@ var AIRTIME = (function(AIRTIME) { $toolbar = $historyTableDiv.parents(".dataTables_wrapper").find(".fg-toolbar:first"); createToolbarButtons($toolbar); - - $("#his-select-page").click(selectCurrentPage); - $("#his-dselect-page").click(deselectCurrentPage); - $("#his-dselect-all").click(emptySelectedLogItems); - + return oTable; } @@ -661,6 +657,10 @@ var AIRTIME = (function(AIRTIME) { } }); + $historyContentDiv.on("click", ".his-select-page", selectCurrentPage); + $historyContentDiv.on("click", ".his-dselect-page", deselectCurrentPage); + $historyContentDiv.on("click", ".his-dselect-all", emptySelectedLogItems); + $historyContentDiv.on("click", "#his_trash", function(ev){ var items = getSelectedLogItems(), url = baseUrl+"playouthistory/delete-list-items";