summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-08 14:09:37 +0200
committerSebastian Wagner2011-09-08 14:09:37 +0200
commit329c438e7307e1f8330adceeb1fddf3cf24eabe9 (patch)
tree8c748532c7cab4ccca348412087a626422ed4737 /application
parentdelete events by key (diff)
downloadpoolctrl-329c438e7307e1f8330adceeb1fddf3cf24eabe9.tar.gz
poolctrl-329c438e7307e1f8330adceeb1fddf3cf24eabe9.tar.xz
poolctrl-329c438e7307e1f8330adceeb1fddf3cf24eabe9.zip
edit events by dblclick
Diffstat (limited to 'application')
-rw-r--r--application/controllers/EventController.php4
-rw-r--r--application/views/scripts/event/index.phtml14
2 files changed, 7 insertions, 11 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 017c7c8..4edabab 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -342,10 +342,6 @@ class EventController extends Zend_Controller_Action
return;
}
}
-
- public function refreshCal() {
- $this->_redirect('/event/');
- }
public function editAction()
{
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'} );
})