From e1e8160e538f492c5948f4c21df25033b678cf72 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 5 Dec 2012 13:29:29 -0500 Subject: [PATCH] CC-4737: Listener stats should take up the full screen - fixed --- .../application/views/scripts/listenerstat/index.phtml | 3 +-- airtime_mvc/public/js/airtime/listenerstat/listenerstat.js | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/views/scripts/listenerstat/index.phtml b/airtime_mvc/application/views/scripts/listenerstat/index.phtml index 466c34fa6..d3cff34c7 100644 --- a/airtime_mvc/application/views/scripts/listenerstat/index.phtml +++ b/airtime_mvc/application/views/scripts/listenerstat/index.phtml @@ -2,6 +2,5 @@
- date_form; ?> - +
date_form; ?>
\ No newline at end of file diff --git a/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js b/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js index 194db78a4..71981d840 100644 --- a/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js +++ b/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js @@ -5,6 +5,12 @@ $(document).ready(function() { dateEndId = "#his_date_end", timeEndId = "#his_time_end"; + // set width dynamically + var width = $("#content").width(); + width = width - 120; + $("#listenerstat_content").find("#flot_placeholder").width(width); + $("#listenerstat_content").find("#legend").width(width); + getDataAndPlot(); listenerstat_content.find("#his_submit").click(function(){