summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/event')
-rw-r--r--application/views/scripts/event/index.phtml14
1 files changed, 7 insertions, 7 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 6618c52..473bbc5 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -100,6 +100,8 @@ var lastview;
eventClick: function( event, jsEvent, view ) {
+ $('#calendar').dblclick(function() { self.location = "/event/edit/eventID/" + event.id;});
+
$(document).keydown(function (e) {
if (e.keyCode == 8 || e.keyCode == 46) {
if (confirm("Are you sure to delete " + event.title + " ?")) {
@@ -109,6 +111,7 @@ var lastview;
}else{ self.location = "/event/"; }
}
});
+ return false;
/*
if(event.color == 'red') {
event.color = 'rgb(112,0,0)';
@@ -227,13 +230,10 @@ var lastview;
// $('.fc-header-right').append('<span class="fc-button fc-state-default fc-corner-right fc-state-active"><span class="fc-button-inner"><span id="addevent" class="fc-button-content">Add Event</span><span class="fc-button-effect"><span></span></span></span></span>');
$('.fc-header-left').append('<form name="PoolSelectForm"><select name="PoolSelectbox" onChange=""><option>Please choose a Pool</option></select></form>');
-
- $('#calendar').click(function() {
- //$('#calendar').fullCalendar('addEventSource', "/event/eventlist");
- //$('#calendar').fullCalendar('removeEvents', function(calEvent) { return calEvent.category == 'Lecture'} );
- $('#calendar').fullCalendar('rerenderEvents');
- })
-/*
+ /*
+ $('.fc-header-center').click(function() {
+ $('#calendar').fullCalendar('removeEvents', function(calEvent) { return calEvent.category == 'Lecture'} );
+
$('.fc-header-center').click(function() {
$('#calendar').fullCalendar('removeEvents', function(calEvent) { return calEvent.category == 'Maintenance'} );
})