diff --git a/airtime_mvc/application/forms/GeneralPreferences.php b/airtime_mvc/application/forms/GeneralPreferences.php index 11162dbc9..9150ba287 100644 --- a/airtime_mvc/application/forms/GeneralPreferences.php +++ b/airtime_mvc/application/forms/GeneralPreferences.php @@ -42,7 +42,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm )); $third_party_api = new Zend_Form_Element_Radio('thirdPartyApi'); - $third_party_api->setLabel('Allow Remote Websites To Access "Schedule" Info?
(Enable this to make front-end widgets work.)'); + $third_party_api->setLabel('Website Widgets:'); $third_party_api->setMultiOptions(array("Disabled", "Enabled")); $third_party_api->setValue(Application_Model_Preference::GetAllow3rdPartyApi()); diff --git a/airtime_mvc/application/views/scripts/form/preferences_general.phtml b/airtime_mvc/application/views/scripts/form/preferences_general.phtml index e76257fc0..484a6b3b2 100644 --- a/airtime_mvc/application/views/scripts/form/preferences_general.phtml +++ b/airtime_mvc/application/views/scripts/form/preferences_general.phtml @@ -27,13 +27,18 @@ -
- +
+ +
+
element->getElement('thirdPartyApi')->getValue(); ?> + element->getElement('thirdPartyApi')->getMultiOptions() as $radio) : ?>
+ diff --git a/airtime_mvc/public/js/airtime/preferences/preferences.js b/airtime_mvc/public/js/airtime/preferences/preferences.js index 2c0ef024a..dae344b70 100644 --- a/airtime_mvc/public/js/airtime/preferences/preferences.js +++ b/airtime_mvc/public/js/airtime/preferences/preferences.js @@ -92,10 +92,36 @@ function setCollapsibleWidgetJsCode() { $('#widgetCode-label').hide("fast"); $('#widgetCode-element').hide("fast"); } - }); } +function createWidgetHelpDescription() { + $('#thirdPartyApiInfo').qtip({ + content: { + text: "Enabling this feature will allow Airtime to " + + "provide schedule data to external widgets that can be embedded " + + "in your website. Enable this feature to reveal the embeddable " + + "code." + }, + 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" + }, + }); + +} + $(document).ready(function() { $('.collapsible-header').live('click',function() { @@ -111,4 +137,5 @@ $(document).ready(function() { setConfigureMailServerListener(); setEnableSystemEmailsListener(); setCollapsibleWidgetJsCode(); + createWidgetHelpDescription(); });