From 99f4afdcea280e3269cd4832a6c7efaaa23cd943 Mon Sep 17 00:00:00 2001 From: Zachary Klosko Date: Fri, 22 Jan 2021 09:20:04 -0500 Subject: [PATCH] Fixing display bug --- .../js/airtime/playouthistory/historytable.js | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/airtime_mvc/public/js/airtime/playouthistory/historytable.js b/airtime_mvc/public/js/airtime/playouthistory/historytable.js index 9adca7bf6..021bc4524 100644 --- a/airtime_mvc/public/js/airtime/playouthistory/historytable.js +++ b/airtime_mvc/public/js/airtime/playouthistory/historytable.js @@ -517,7 +517,9 @@ var AIRTIME = (function(AIRTIME) { removeHistoryDialog(); } }); - } + } + + hisSubmit(); // Fixes display bug /* * Icon hover states for search. @@ -825,23 +827,26 @@ var AIRTIME = (function(AIRTIME) { return AIRTIME.utilities.fnGetScheduleRange(dateStartId, timeStartId, dateEndId, timeEndId); } - + + function hisSubmit(){ + var fn, info; + + info = getStartEnd(); + + fn = fnServerData; + fn.start = info.start; + fn.end = info.end; + + if (inShowsTab) { + showSummaryList(info.start, info.end); + } + else { + redrawTables(); + }; + }; + $historyContentDiv.find("#his_submit").click(function(ev){ - var fn, - info; - - info = getStartEnd(); - - fn = fnServerData; - fn.start = info.start; - fn.end = info.end; - - if (inShowsTab) { - showSummaryList(info.start, info.end); - } - else { - redrawTables(); - } + hisSubmit(); }); $historyContentDiv.on("click", ".his-select-page", selectCurrentPage);