summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
authorSebastian Wagner2011-07-29 15:30:56 +0200
committerSebastian Wagner2011-07-29 15:30:56 +0200
commitf35d66ba921da54ef264f29dfdfeba55d079f6ac (patch)
treed4085b7acef88daf98980ab597ea58257cb74b5a /application/views/scripts
parentsome calendar changes (diff)
downloadpoolctrl-f35d66ba921da54ef264f29dfdfeba55d079f6ac.tar.gz
poolctrl-f35d66ba921da54ef264f29dfdfeba55d079f6ac.tar.xz
poolctrl-f35d66ba921da54ef264f29dfdfeba55d079f6ac.zip
minor
Diffstat (limited to 'application/views/scripts')
-rw-r--r--application/views/scripts/event/index.phtml83
1 files changed, 42 insertions, 41 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 55db303..a8f3a2c 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -7,47 +7,6 @@
$(document).ready(function() {iniCalendar();});
- function iniCalendar() {
-
- var calendar = $('#calendar').fullCalendar({
- header: {
- left: 'title',
- center: 'prev,next today',
- right: 'month,agendaWeek,agendaDay'
- },
- editable: true,
-// disableDragging: false,
-// droppable: true,
- selectable: true,
- selectHelper: true,
-
- events: "calendarEvents.php",
-
- select: function(start, end, allDay) {
- var title = prompt('Event Title:');
- if (title) {
- calendar.fullCalendar('renderEvent',
- {
- title: title,
- start: start,
- end: end,
- allDay: allDay
- },
- true // make the event "stick"
- );
- }
- calendar.fullCalendar('unselect');
- },
-
- eventClick: function(event, element) {
- var title = prompt('New Title:');
- event.title = title;
-
- $('#calendar').fullCalendar('updateEvent', event);
-
- }
- });
- }
</script>
</head>
<h1>Pool Control</h1>
@@ -91,6 +50,48 @@ $(document).ready(function() {iniCalendar();});
setInvisible('pool' + poolID);
}
}
+ }
+
+ function iniCalendar() {
+
+ var calendar = $('#calendar').fullCalendar({
+ header: {
+ left: 'title',
+ center: 'prev,next today',
+ right: 'month,agendaWeek,agendaDay'
+ },
+ editable: true,
+// disableDragging: false,
+// droppable: true,
+ selectable: true,
+ selectHelper: true,
+
+ events: "calendarEvents.php",
+
+ select: function(start, end, allDay) {
+ var title = prompt('Event Title:');
+ if (title) {
+ calendar.fullCalendar('renderEvent',
+ {
+ title: title,
+ start: start,
+ end: end,
+ allDay: allDay
+ },
+ true // make the event "stick"
+ );
+ }
+ calendar.fullCalendar('unselect');
+ },
+
+ eventClick: function(event, element) {
+ var title = prompt('New Title:');
+ event.title = title;
+
+ $('#calendar').fullCalendar('updateEvent', event);
+
+ }
+ });
}
</script>
<br />