summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
authorsebastian wagner2011-09-13 11:54:09 +0200
committersebastian wagner2011-09-13 11:54:09 +0200
commit2325b4a99461c10658ae9d119a299d3ea1c45908 (patch)
treeafd2cba075eb038eb7c75df465a4f83404853dbe /application/views/scripts
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-2325b4a99461c10658ae9d119a299d3ea1c45908.tar.gz
poolctrl-2325b4a99461c10658ae9d119a299d3ea1c45908.tar.xz
poolctrl-2325b4a99461c10658ae9d119a299d3ea1c45908.zip
disable resizing of boot- and shutdownEvents
Diffstat (limited to 'application/views/scripts')
-rwxr-xr-xapplication/views/scripts/event/index.phtml15
1 files changed, 10 insertions, 5 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 097f6ad..c190dd2 100755
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -140,8 +140,9 @@ var clickTmp = true;
});
});
$( "#eventDeleteWdhDialog" ).dialog('open');}
- //copy selected event by key ctrl(17) AND c(67)
- }/* else if (e.ctrlKey && e.keyCode == 67 && selectedEvent.selected == true) {
+ }
+ //copy selected event by key ctrl(17) AND c(67)
+ /* else if (e.ctrlKey && e.keyCode == 67 && selectedEvent.selected == true) {
cpEvent = selectedEvent;
//cpEventStart = $.fullCalendar.formatDate(selectedEvent.start, 'hh:mm');
//cpEventEnd = $.fullCalendar.formatDate(selectedEvent.end, 'hh:mm');
@@ -184,6 +185,7 @@ var clickTmp = true;
overlapEventsSeparate: false,
slotMinutes: 30,
defaultEventMinutes: 20,
+ //disableResizing: true,
dayClick: function( date, allDay, jsEvent, view ) {
@@ -384,12 +386,15 @@ var clickTmp = true;
},
eventRender: function(event, element, view) {
+
- //element.resizable = false;
+ // disable resizing if the event is a boot- or shutdown-event
if(event.category == 'Boot' || event.category == 'Shutdown') {
- element.removeClass('ui-resizable-resizing')
- }
+ element.resizable(false); // calendar resizing
+ element.resizable("destroy"); // jqeury resizing
+ element.removeClass('fc-event-vert'); // css class
+ }
/*
* no need for this