removing choice for show instance if in shows tab.
This commit is contained in:
parent
0f0958ee6b
commit
5a8957273f
2 changed files with 27 additions and 8 deletions
|
@ -31,12 +31,14 @@
|
||||||
</dd>
|
</dd>
|
||||||
<?php endforeach;?>
|
<?php endforeach;?>
|
||||||
|
|
||||||
<dt>
|
<dd id="his_choose_instance">
|
||||||
<label for="<?php echo $name;?>"><?php echo _("Choose Show Instance") ?></label>
|
<div>
|
||||||
</dt>
|
<label for="<?php echo $name;?>"><?php echo _("Choose Show Instance") ?></label>
|
||||||
<dd>
|
</div>
|
||||||
<select id="his_instance_select"><option value="0"><?php echo "----------" ?><option></select>
|
<div>
|
||||||
<button class="btn" type="button" id="his_instance_retrieve"><?php echo _("Find") ?></button>
|
<select id="his_instance_select"><option value="0"><?php echo "----------" ?><option></select>
|
||||||
|
<button class="btn" type="button" id="his_instance_retrieve"><?php echo _("Find") ?></button>
|
||||||
|
</div>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<?php foreach ($form->getSubForm('his_item_template') as $index=>$el): ?>
|
<?php foreach ($form->getSubForm('his_item_template') as $index=>$el): ?>
|
||||||
|
|
|
@ -57,7 +57,8 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
oTableAgg,
|
oTableAgg,
|
||||||
oTableItem,
|
oTableItem,
|
||||||
oTableShow;
|
oTableShow,
|
||||||
|
inShowsTab = false;
|
||||||
|
|
||||||
function getSelectedLogItems() {
|
function getSelectedLogItems() {
|
||||||
var items = Object.keys(selectedLogItems);
|
var items = Object.keys(selectedLogItems);
|
||||||
|
@ -424,6 +425,9 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
},
|
},
|
||||||
navigate: function() {
|
navigate: function() {
|
||||||
delete fnServerData.instance;
|
delete fnServerData.instance;
|
||||||
|
},
|
||||||
|
always: function() {
|
||||||
|
inShowsTab = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -433,14 +437,21 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
},
|
},
|
||||||
navigate: function() {
|
navigate: function() {
|
||||||
delete fnServerData.instance;
|
delete fnServerData.instance;
|
||||||
|
},
|
||||||
|
always: function() {
|
||||||
|
inShowsTab = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
initialized: false,
|
initialized: false,
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
showSummaryList();
|
|
||||||
},
|
},
|
||||||
navigate: function() {
|
navigate: function() {
|
||||||
|
|
||||||
|
},
|
||||||
|
always: function() {
|
||||||
|
inShowsTab = true;
|
||||||
showSummaryList();
|
showSummaryList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -478,6 +489,10 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
function makeHistoryDialog(html) {
|
function makeHistoryDialog(html) {
|
||||||
$hisDialogEl = $(html);
|
$hisDialogEl = $(html);
|
||||||
|
|
||||||
|
if (inShowsTab) {
|
||||||
|
$hisDialogEl.find("#his_choose_instance").remove();
|
||||||
|
}
|
||||||
|
|
||||||
$hisDialogEl.dialog({
|
$hisDialogEl.dialog({
|
||||||
title: $.i18n._("Edit History Record"),
|
title: $.i18n._("Edit History Record"),
|
||||||
modal: false,
|
modal: false,
|
||||||
|
@ -649,6 +664,8 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
else {
|
else {
|
||||||
tab.navigate();
|
tab.navigate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tab.always();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue