From 49cbee9db73eb3e6e06a241388ec4018a0834ddd Mon Sep 17 00:00:00 2001 From: Naomi Date: Fri, 21 Jan 2011 14:56:04 -0500 Subject: [PATCH] fix to add show dialog if error. --- public/js/airtime/schedule/schedule.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/js/airtime/schedule/schedule.js b/public/js/airtime/schedule/schedule.js index 9fa197489..c014dd79e 100644 --- a/public/js/airtime/schedule/schedule.js +++ b/public/js/airtime/schedule/schedule.js @@ -60,11 +60,9 @@ function submitShow() { formData, function(data){ if(data.content) { - dialog.find("form").remove(); - dialog.find("#show_overlap_error").empty(); - dialog.append(data.content); - makeShowDialog(dialog, json); + dialog.find("form").remove(); + makeShowDialog(dialog, data); if(data.overlap) { var div, table, tr, days;