SAAS-1088 - move 'All My Shows' checkbox to dropdown instead
This commit is contained in:
parent
258500f650
commit
2ee7e4bf71
|
@ -85,7 +85,11 @@ class Application_Form_ShowBuilder extends Zend_Form_SubForm
|
||||||
|
|
||||||
private function getShowNames()
|
private function getShowNames()
|
||||||
{
|
{
|
||||||
|
$user = Application_Model_User::getCurrentUser();
|
||||||
$showNames = array("0" => _("Filter by Show"));
|
$showNames = array("0" => _("Filter by Show"));
|
||||||
|
if ($user->getType() === 'H') {
|
||||||
|
$showNames["-1"] = _("My Shows");
|
||||||
|
}
|
||||||
|
|
||||||
$shows = CcShowQuery::create()
|
$shows = CcShowQuery::create()
|
||||||
->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)
|
->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
<?php echo $this->element->getElement('sb_show_filter') ?>
|
<?php echo $this->element->getElement('sb_show_filter') ?>
|
||||||
|
|
||||||
<?php if ($this->element->getElement('sb_my_shows')):?>
|
<!-- --><?php //if ($this->element->getElement('sb_my_shows')):?>
|
||||||
<label><?php echo $this->element->getElement('sb_my_shows')->getLabel(); ?></label>
|
<!-- <label>--><?php //echo $this->element->getElement('sb_my_shows')->getLabel(); ?><!--</label>-->
|
||||||
<?php echo $this->element->getElement('sb_my_shows'); ?>
|
<!-- --><?php //echo $this->element->getElement('sb_my_shows'); ?>
|
||||||
<?php endif;?>
|
<!-- --><?php //endif;?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -94,8 +94,6 @@ AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
check = validateTimeRange();
|
check = validateTimeRange();
|
||||||
|
|
||||||
console.log(check);
|
|
||||||
|
|
||||||
if (check.isValid) {
|
if (check.isValid) {
|
||||||
//reset timestamp value since input values could have changed.
|
//reset timestamp value since input values could have changed.
|
||||||
AIRTIME.showbuilder.resetTimestamp();
|
AIRTIME.showbuilder.resetTimestamp();
|
||||||
|
@ -111,7 +109,8 @@ AIRTIME = (function(AIRTIME) {
|
||||||
fn.ops = {};
|
fn.ops = {};
|
||||||
}
|
}
|
||||||
fn.ops.showFilter = op.find("#sb_show_filter").val();
|
fn.ops.showFilter = op.find("#sb_show_filter").val();
|
||||||
fn.ops.myShows = op.find("#sb_my_shows").is(":checked") ? 1 : 0;
|
// Hacky?
|
||||||
|
fn.ops.myShows = (fn.ops.showFilter == -1) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
oTable.fnDraw();
|
oTable.fnDraw();
|
||||||
|
|
Loading…
Reference in New Issue