summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rw-r--r--application/views/scripts/event/index.phtml36
1 files changed, 16 insertions, 20 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index a276ecb..3bb0fe3 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -48,21 +48,15 @@ var selectedEvent = null; // keydown variable
}
- function setOpacity(type) {
- //alert(type);
-
+ function setOpacity(type, value) {
var events = $('#calendar').fullCalendar( 'clientEvents' , function(event) {
if(event.category == type) {
- return true;}
+ event.opacity = value;
+ }
return false;
});
- /*for( var i in events ) {
- alert(events[i].title);
- }*/
- //$('#calendar').fullCalendar( 'rerenderEvents' );
+ $('#calendar').fullCalendar( 'rerenderEvents' );
}
-
-
// fetch all poolevents of the selected #poolselectbox value
function fetchPoolEvents(element) {
@@ -75,6 +69,7 @@ var selectedEvent = null; // keydown variable
$(document).keydown(function (e) {
if (e.keyCode == 8 || e.keyCode == 46 && selectedEvent.selected == true) {
if(selectedEvent.repeat == 0) {
+
// dialog for deleting selected event
$(function() {
$( "#eventDeleteDialog" ).dialog({
@@ -180,8 +175,9 @@ var selectedEvent = null; // keydown variable
*event.dblclick(alert('test'););
*$('#calendar').dblclick(function() { self.location = "/event/edit/eventID/" + event.id;});
*/
+ $(this).css('opacity', .5);
- eventSelected(event);
+ //eventSelected(event);
},
@@ -332,7 +328,7 @@ var selectedEvent = null; // keydown variable
show: 'mouseover',
hide: 'mouseout'
});
- */
+ */
if (view.name == 'agendaWeek') {
@@ -373,8 +369,8 @@ var selectedEvent = null; // keydown variable
} else {
if($(this).hasClass("fc-state-active")) {
$(this).removeClass("fc-state-active");
- setOpacity('Lecture');
- } else {$(this).addClass("fc-state-active");}
+ setOpacity('Lecture', '.5');
+ } else {$(this).addClass("fc-state-active"); setOpacity('Lecture', '1');}
}
});
$("#maintenance").click(function(){
@@ -383,8 +379,8 @@ var selectedEvent = null; // keydown variable
} else {
if($(this).hasClass("fc-state-active")) {
$(this).removeClass("fc-state-active");
- setOpacity('Maintenance');
- } else {$(this).addClass("fc-state-active");}
+ setOpacity('Maintenance', '.5');
+ } else {$(this).addClass("fc-state-active"); setOpacity('Maintenance', '1');}
}
});
$("#boot").click(function(){
@@ -393,8 +389,8 @@ var selectedEvent = null; // keydown variable
} else {
if($(this).hasClass("fc-state-active")) {
$(this).removeClass("fc-state-active");
- setOpacity('Boot');
- } else {$(this).addClass("fc-state-active");}
+ setOpacity('Boot', '.5');
+ } else {$(this).addClass("fc-state-active"); setOpacity('Boot', '1');}
}
});
$("#shutdown").click(function(){
@@ -403,8 +399,8 @@ var selectedEvent = null; // keydown variable
} else {
if($(this).hasClass("fc-state-active")) {
$(this).removeClass("fc-state-active");
- setOpacity('Shutdown');
- } else {$(this).addClass("fc-state-active");}
+ setOpacity('Shutdown', '.5');
+ } else {$(this).addClass("fc-state-active"); setOpacity('Shutdown', '1');}
}
});