From cbf75d41a742ab6d486b22c0525d43b59bd055bc Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 14 Nov 2011 16:03:32 +0100 Subject: some clean up --- application/views/scripts/event/index.phtml | 38 ++--------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml index fb487fa..a60c46f 100755 --- a/application/views/scripts/event/index.phtml +++ b/application/views/scripts/event/index.phtml @@ -17,17 +17,10 @@ var eventColor = {ev:null, color:null}; // keydown var selectedEvent = null; -var cpEvent = null; -var selectedDate = null; // dblclick var clickTmp = true; -// overlapping -var isDroppable; -var overlappStart; -var overlappEnd; - // poolSelectVal var poolIDtmp; @@ -47,10 +40,8 @@ function eventSelected(event) { // show report button if($.get("/event/checkright/rightShortcut/er")){ $('#eventReportButton').show(); - } else { $('#eventReportButton').hide(); - } // show edit button if($.get("/event/checkright/rightShortcut/ee")) { @@ -67,14 +58,6 @@ function eventSelected(event) { } else { self.location="/event/add/";} } - - function showCalendar() { - $("#calendar").show(); - } - - function hideCalendar() { - $("#calendar").hide(); - } function setOpacity(type, value) { var events = $('#calendar').fullCalendar( 'clientEvents' , function(event) { @@ -134,7 +117,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -165,7 +147,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -234,7 +215,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -312,7 +292,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -410,7 +389,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -453,7 +431,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -562,7 +539,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -617,7 +593,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -663,18 +638,13 @@ function eventSelected(event) { element.removeClass('fc-event-vert'); // css class } - // disable resizing if the event is a boot- or shutdown-event + // disable resizing if the event is a boot- or shutdown-event if(event.category == 'Boot' || event.category == 'Shutdown') { element.resizable(false); // calendar resizing element.resizable("destroy"); // jqeury resizing element.removeClass('fc-event-vert'); // css class } - // disable editing of immediate events - if(event.immediate == 1) { - element.ediable = false; - } - element.qtip({ content: 'Title: ' + event.title + '
' + @@ -684,10 +654,7 @@ function eventSelected(event) { show: 'mouseover', hide: 'mouseout' }); - - if (view.name == 'agendaWeek') { - - } + if (view.name == 'agendaDay') { if(event.participants) { element.find('.fc-event-title').append( @@ -799,7 +766,6 @@ function eventSelected(event) { }, open: function () { $(".ui-dialog-titlebar-close").hide(); - //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); -- cgit v1.2.3-55-g7522