history records for a show have times validated within show range.

This commit is contained in:
Naomi Aro 2013-08-30 00:43:43 -04:00
parent 5a8957273f
commit 15e27f8166
6 changed files with 89 additions and 46 deletions

View file

@ -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();
}