From 2cb17a3b08aeb157f5b234f04201c7d5149b08fd Mon Sep 17 00:00:00 2001 From: James Date: Tue, 24 Apr 2012 11:26:22 -0400 Subject: [PATCH] CC-3660: Cannot click Airtime Manual link on override info popup - replaced the popup with qtip --- .../forms/LiveStreamingPreferences.php | 4 +--- .../scripts/form/preferences_livestream.phtml | 10 ++------- airtime_mvc/public/css/styles.css | 11 ++++++++++ .../js/airtime/preferences/streamsetting.js | 22 +++++++++++++++++++ 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/airtime_mvc/application/forms/LiveStreamingPreferences.php b/airtime_mvc/application/forms/LiveStreamingPreferences.php index 9e89cae92..fe318d692 100644 --- a/airtime_mvc/application/forms/LiveStreamingPreferences.php +++ b/airtime_mvc/application/forms/LiveStreamingPreferences.php @@ -99,10 +99,8 @@ class Application_Form_LiveStreamingPreferences extends Zend_Form_SubForm $live_dj_connection_url = "N/A"; } - $overrideDescription = "If Airtime is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151. For more detail, please read the Airtime manual."; - $this->setDecorators(array( - array('ViewScript', array('viewScript' => 'form/preferences_livestream.phtml', 'master_dj_connection_url'=>$master_dj_connection_url, 'live_dj_connection_url'=>$live_dj_connection_url,'overrideDescription' => $overrideDescription)) + array('ViewScript', array('viewScript' => 'form/preferences_livestream.phtml', 'master_dj_connection_url'=>$master_dj_connection_url, 'live_dj_connection_url'=>$live_dj_connection_url)) )); } diff --git a/airtime_mvc/application/views/scripts/form/preferences_livestream.phtml b/airtime_mvc/application/views/scripts/form/preferences_livestream.phtml index 9e48cb6ff..8fbafee9f 100644 --- a/airtime_mvc/application/views/scripts/form/preferences_livestream.phtml +++ b/airtime_mvc/application/views/scripts/form/preferences_livestream.phtml @@ -77,10 +77,7 @@
master_dj_connection_url ?> override   - - - overrideDescription ?> - +
@@ -118,10 +115,7 @@
live_dj_connection_url ?> override   - - - overrideDescription?> - +
diff --git a/airtime_mvc/public/css/styles.css b/airtime_mvc/public/css/styles.css index d00131463..c58c3d3e4 100644 --- a/airtime_mvc/public/css/styles.css +++ b/airtime_mvc/public/css/styles.css @@ -93,6 +93,17 @@ select { } /* Version Notification Ends*/ +.override_help_icon { + cursor: help; + position: relative; + + display:inline-block; zoom:1; display:inline; + width:14px; height:14px; + background:url(/css/images/icon_info.png) 0 0 no-repeat; + float:right; position:relative; top:2px; right:7px; + line-height:16px !important; +} + /* Info Tooltip Starts */ .info-tooltip { cursor: help; diff --git a/airtime_mvc/public/js/airtime/preferences/streamsetting.js b/airtime_mvc/public/js/airtime/preferences/streamsetting.js index 3c05bd8e5..20cd2d943 100644 --- a/airtime_mvc/public/js/airtime/preferences/streamsetting.js +++ b/airtime_mvc/public/js/airtime/preferences/streamsetting.js @@ -235,4 +235,26 @@ $(document).ready(function() { showErrorSections() setInterval('checkLiquidsoapStatus()', 1000) + + // qtip for help text + $(".override_help_icon").qtip({ + content: { + text: "If Airtime is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151. For more detail, please read the Airtime manual." + }, + hide: { + delay: 500, + fixed: true + }, + style: { + border: { + width: 0, + radius: 4 + }, + classes: "ui-tooltip-dark ui-tooltip-rounded" + }, + position: { + my: "left bottom", + at: "right center" + }, + }) });