From a482a8fe078ee9bd7de008c16424ece4a6c9be9f Mon Sep 17 00:00:00 2001 From: James Date: Thu, 19 Apr 2012 15:55:55 -0400 Subject: [PATCH] CC-3590: Calendar GUI->DJ user should not be able to invoke "Add Show" window - done --- .../public/js/airtime/schedule/full-calendar-functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js index 847784903..ac06b6962 100644 --- a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js +++ b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js @@ -212,7 +212,9 @@ function viewDisplay( view ) { } if(($("#add-show-form").length == 1) && ($("#add-show-form").css('display')=='none') && ($('.fc-header-left > span').length == 5)) { - makeAddShowButton(); + if($.trim($("#add-show-form").html()) != ""){ + makeAddShowButton(); + } } //save view name to db