summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Wagner2011-11-14 16:03:32 +0100
committerSebastian Wagner2011-11-14 16:03:32 +0100
commitcbf75d41a742ab6d486b22c0525d43b59bd055bc (patch)
tree3cf5a43a5a248a8a721098e8f4489128d8122f76
parentsome clean up (diff)
downloadpoolctrl-cbf75d41a742ab6d486b22c0525d43b59bd055bc.tar.gz
poolctrl-cbf75d41a742ab6d486b22c0525d43b59bd055bc.tar.xz
poolctrl-cbf75d41a742ab6d486b22c0525d43b59bd055bc.zip
some clean up
-rwxr-xr-xapplication/views/scripts/event/index.phtml38
1 files 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 + '<br/>' +
@@ -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");
}
});
});