Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
martin 2011-07-04 14:29:19 -04:00
commit ae156c85b4
7 changed files with 36 additions and 11 deletions

View file

@ -114,7 +114,7 @@ class PreferenceController extends Zend_Controller_Action
die(); die();
} }
public function deletesessionvarAction() public function donotshowpopupAction()
{ {
// unset session // unset session
Zend_Session::namespaceUnset('referrer'); Zend_Session::namespaceUnset('referrer');

View file

@ -17,7 +17,7 @@ class Application_Form_RegisterAirtime extends Zend_Form
// Station Name // Station Name
$stnName = new Zend_Form_Element_Text("stnName"); $stnName = new Zend_Form_Element_Text("stnName");
$stnName->setLabel("Station Name:(*)") $stnName->setLabel("Station Name")
->setRequired(true) ->setRequired(true)
->setValue(Application_Model_Preference::GetStationName()) ->setValue(Application_Model_Preference::GetStationName())
->setDecorators(array('ViewHelper')); ->setDecorators(array('ViewHelper'));

View file

@ -20,7 +20,7 @@
<?php endif; ?> <?php endif; ?>
</dd> </dd>
<dt class="block-display info-text"> <dt class="block-display info-text">
Click the box below to advertise your station on <a id="link_to_whos_using" href="">Sourcefabric.org</a>. In order to promote your station, "Send support feedback" must be enabled Click the box below to advertise your station on <a id="link_to_whos_using" href="">Sourcefabric.org</a>. In order to promote your station, "Send support feedback" must be enabled. This data will be collected in addition to the support feedback.
</dt> </dt>
<dd id="publicize-element" class="block-display"> <dd id="publicize-element" class="block-display">
<label class="optional" for="Publicise"> <label class="optional" for="Publicise">
@ -38,7 +38,9 @@
</dl> </dl>
<dl id="public-info" style="display:none;"> <dl id="public-info" style="display:none;">
<dt id="stnName-label"> <dt id="stnName-label">
<label class="optional" for="stnName"><?php echo $this->element->getElement('stnName')->getLabel() ?></label> <label class="optional" for="stnName"><?php echo $this->element->getElement('stnName')->getLabel() ?>
<span class="info-text-small">(Required)</span> :
</label>
</dt> </dt>
<dd id="stnName-element"> <dd id="stnName-element">
<?php echo $this->element->getElement('stnName') ?> <?php echo $this->element->getElement('stnName') ?>
@ -55,6 +57,7 @@
</dt> </dt>
<dd id="Phone-element"> <dd id="Phone-element">
<?php echo $this->element->getElement('Phone') ?> <?php echo $this->element->getElement('Phone') ?>
<span class="info-text-small">(for verification purposes only, will not be published)</span>
<?php if($this->element->getElement('Phone')->hasErrors()) : ?> <?php if($this->element->getElement('Phone')->hasErrors()) : ?>
<ul class='errors'> <ul class='errors'>
<?php foreach($this->element->getElement('Phone')->getMessages() as $error): ?> <?php foreach($this->element->getElement('Phone')->getMessages() as $error): ?>
@ -68,6 +71,7 @@
</dt> </dt>
<dd id="Email-element"> <dd id="Email-element">
<?php echo $this->element->getElement('Email') ?> <?php echo $this->element->getElement('Email') ?>
<span class="info-text-small">(for verification purposes only, will not be published)</span>
<?php if($this->element->getElement('Email')->hasErrors()) : ?> <?php if($this->element->getElement('Email')->hasErrors()) : ?>
<ul class='errors'> <ul class='errors'>
<?php foreach($this->element->getElement('Email')->getMessages() as $error): ?> <?php foreach($this->element->getElement('Email')->getMessages() as $error): ?>

View file

@ -124,5 +124,5 @@ label.wrapp-label input[type="checkbox"] {
#add_show_duration { #add_show_duration {
background: #AAAAAA; background: #AAAAAA;
cursor: default; cursor: default;
width: 50px; width: 65px;
} }

View file

@ -46,3 +46,10 @@
.paginationControl .ui-button-text-only .ui-button-text { .paginationControl .ui-button-text-only .ui-button-text {
padding: 0.2em 1em; padding: 0.2em 1em;
} }
#library_display td {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}

View file

@ -1861,7 +1861,7 @@ fieldset.closed, fieldset.display_field.closed {
} }
fieldset.closed dl, fieldset.closed textarea, fieldset.closed div { fieldset.closed dl, fieldset.closed textarea, fieldset.closed div {
display:none; display:none;
} }
fieldset legend .ui-icon, .ui-widget-content fieldset legend .ui-icon { fieldset legend .ui-icon, .ui-widget-content fieldset legend .ui-icon {
@ -1870,7 +1870,7 @@ fieldset legend .ui-icon, .ui-widget-content fieldset legend .ui-icon {
} }
input[type="checkbox"][disabled] { input[type="checkbox"][disabled] {
opacity: 0.6; opacity: 0.6;
} }
.play_small { .play_small {
@ -1896,3 +1896,17 @@ input[type="checkbox"][disabled] {
.play_small.playing:hover { .play_small.playing:hover {
background-position: -20px -11px; background-position: -20px -11px;
} }
.info-text-small {
color: #5B5B5B;
font-size: 11px;
line-height: 150%;
margin: 0;
padding: 0 0 6px;
font-style:italic;
font-weight:normal;
}
dd .info-text-small {
padding: 1px 0 2px;
display:inline-block;
}

View file

@ -1,8 +1,8 @@
$(document).ready(function(){ $(document).ready(function(){
var dialogGlob; var dialogGlob;
function deleteSessionVar(){ function doNotShowPopup(){
$.get("/Preference/deletesessionvar"); $.get("/Preference/donotshowpopup");
} }
$.get("/Preference/register", {format:"json"}, function(json){ $.get("/Preference/register", {format:"json"}, function(json){
@ -15,7 +15,7 @@ $(document).ready(function(){
resizable: false, resizable: false,
modal: true, modal: true,
position:['center',50], position:['center',50],
close: deleteSessionVar, close: doNotShowPopup,
buttons: [ buttons: [
{ {
id: "remind_me", id: "remind_me",