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)
This commit is contained in:
parent
8d56e9e1ff
commit
9cfcaf2ffd
|
@ -94,7 +94,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
||||||
//
|
//
|
||||||
// Add the description element
|
// Add the description element
|
||||||
$this->addElement('textarea', 'widgetCode', array(
|
$this->addElement('textarea', 'widgetCode', array(
|
||||||
'label' => 'Javascript Code:',
|
'label' => _('HTML Code:'),
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
'style' => 'font-family: Consolas, "Liberation Mono", Courier,
|
'style' => 'font-family: Consolas, "Liberation Mono", Courier,
|
||||||
|
@ -134,10 +134,14 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
||||||
|
|
||||||
$host = $_SERVER['SERVER_NAME'];
|
$host = $_SERVER['SERVER_NAME'];
|
||||||
$code = <<<CODE
|
$code = <<<CODE
|
||||||
<script src="http://$host/widgets/js/jquery-1.6.1.min.js" type="text/javascript"></script>
|
<!-- READ THESE INSTRUCTIONS CAREFULLY:
|
||||||
<script src="http://$host/widgets/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
|
Step 1 of 2: Paste these next 4 lines in the <head> section of your HTML page -->
|
||||||
<script src="http://$host/widgets/js/jquery.showinfo.js" type="text/javascript"></script>
|
<script src="https://$host/widgets/js/jquery-1.6.1.min.js" type="text/javascript"></script>
|
||||||
|
<script src="https://$host/widgets/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
|
||||||
|
<script src="https://$host/widgets/js/jquery.showinfo.js" type="text/javascript"></script>
|
||||||
|
<link rel="stylesheet" href="https://$host/widgets/css/airtime-widgets.css"></link>
|
||||||
|
|
||||||
|
<!-- Step 2 of 2: Paste these remaining lines in the <body> section of your HTML page -->
|
||||||
<div id="headerLiveHolder" style="border: 1px solid #999999; padding: 10px;"></div>
|
<div id="headerLiveHolder" style="border: 1px solid #999999; padding: 10px;"></div>
|
||||||
<div id="onAirToday"></div>
|
<div id="onAirToday"></div>
|
||||||
<div id="scheduleTabs"></div>
|
<div id="scheduleTabs"></div>
|
||||||
|
@ -159,6 +163,8 @@ $(document).ready(function() {
|
||||||
sourceDomain:"http://$host",
|
sourceDomain:"http://$host",
|
||||||
updatePeriod: 600 //seconds
|
updatePeriod: 600 //seconds
|
||||||
});
|
});
|
||||||
|
var d = new Date().getDay();
|
||||||
|
$('#scheduleTabs').tabs({selected: d === 0 ? 6 : d-1, fx: { opacity: 'toggle' }});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
CODE;
|
CODE;
|
||||||
|
|
Loading…
Reference in New Issue