history records for a show have times validated within show range.
This commit is contained in:
parent
5a8957273f
commit
15e27f8166
6 changed files with 89 additions and 46 deletions
|
@ -486,13 +486,19 @@ var AIRTIME = (function(AIRTIME) {
|
|||
});
|
||||
}
|
||||
|
||||
function makeHistoryDialog(html) {
|
||||
$hisDialogEl = $(html);
|
||||
function processDialogHtml($el) {
|
||||
|
||||
if (inShowsTab) {
|
||||
$hisDialogEl.find("#his_choose_instance").remove();
|
||||
$el.find("#his_choose_instance").remove();
|
||||
}
|
||||
|
||||
return $el
|
||||
}
|
||||
|
||||
function makeHistoryDialog(html) {
|
||||
$hisDialogEl = $(html);
|
||||
$hisDialogEl = processDialogHtml($hisDialogEl);
|
||||
|
||||
$hisDialogEl.dialog({
|
||||
title: $.i18n._("Edit History Record"),
|
||||
modal: false,
|
||||
|
@ -604,6 +610,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
|
||||
if (json.form !== undefined) {
|
||||
var $newForm = $(json.form);
|
||||
$newForm = processDialogHtml($newForm);
|
||||
$hisDialogEl.html($newForm.html());
|
||||
initializeDialog();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue