From 9cfcaf2ffd7ae65b31874cc8f487af967a85e481 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Mon, 12 Jan 2015 22:29:21 -0500 Subject: [PATCH] SAAS-537: Fixed the week view of the schedule widgets * Also improved the instructions inline for how to use them... (this is a stop-gap measure until we get a real iframe widget) * ALSO renamed the field HTML Code since it's not JS! (it was misleading before) --- .../application/forms/GeneralPreferences.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/airtime_mvc/application/forms/GeneralPreferences.php b/airtime_mvc/application/forms/GeneralPreferences.php index c45437b08..ecee11b6d 100644 --- a/airtime_mvc/application/forms/GeneralPreferences.php +++ b/airtime_mvc/application/forms/GeneralPreferences.php @@ -94,7 +94,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm // // Add the description element $this->addElement('textarea', 'widgetCode', array( - 'label' => 'Javascript Code:', + 'label' => _('HTML Code:'), 'required' => false, 'readonly' => true, 'style' => 'font-family: Consolas, "Liberation Mono", Courier, @@ -134,10 +134,14 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm $host = $_SERVER['SERVER_NAME']; $code = << - - + + + + + +
@@ -159,6 +163,8 @@ $(document).ready(function() { sourceDomain:"http://$host", updatePeriod: 600 //seconds }); + var d = new Date().getDay(); + $('#scheduleTabs').tabs({selected: d === 0 ? 6 : d-1, fx: { opacity: 'toggle' }}); }); CODE;