summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-28 12:19:07 +0200
committerSebastian Wagner2011-09-28 12:19:07 +0200
commit5c66eac95322f983f45a84de1955be4996c016d1 (patch)
tree5f3782c0b7fa43b7ca59eb0e7f160690a7c8f9c2 /application/views/scripts/event/index.phtml
parentbugfix (diff)
downloadpoolctrl-5c66eac95322f983f45a84de1955be4996c016d1.tar.gz
poolctrl-5c66eac95322f983f45a84de1955be4996c016d1.tar.xz
poolctrl-5c66eac95322f983f45a84de1955be4996c016d1.zip
minor
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rwxr-xr-xapplication/views/scripts/event/index.phtml12
1 files changed, 6 insertions, 6 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 7f1881f..96cfa5d 100755
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -206,7 +206,7 @@ var dayClick = false;
dayClick: function( date, allDay, jsEvent, view ) {
- selectedDate = date;
+ /*selectedDate = date;
dayClick = true;
$('#calendar').fullCalendar( 'unselect' );
@@ -243,6 +243,8 @@ var dayClick = false;
$( "#errorRightsDialog" ).dialog('open');
}
else $('#calendar').fullCalendar( 'unselect' );
+ */
+ //self.location="/event/add/evstart/" + date + "/poolID/" + $("#poolselectbox option:selected").val();
},
eventMouseover: function( event, jsEvent, view ) {
@@ -256,12 +258,10 @@ var dayClick = false;
eventClick: function( event, jsEvent, view ) {
$('#calendar').fullCalendar( 'unselect' );
- evClick = true;
if(clickTmp) {
clickTmp = false;
setTimeout(function() {clickTmp = true;} , 300);
- setTimeout(function() {evClick = false;} , 300);
$(this).qtip("destroy");
eventSelected(event);
// non immediate event case
@@ -274,9 +274,9 @@ var dayClick = false;
select: function( startDate, endDate, allDay, jsEvent, view ) {
- if($("#poolselectbox option:selected").val() == 'default' && dayClick == false) {
+ if($("#poolselectbox option:selected").val() == 'default') {
$( "#noPoolSelectedDialog" ).dialog('open');
- } else if ($.get("/event/checkright/rightShortcut/ec") && dayClick == false) {
+ } else if ($.get("/event/checkright/rightShortcut/ec")) {
$(function() {
$( "#eventAddDialog" ).dialog({
autoOpen: false,
@@ -300,7 +300,7 @@ var dayClick = false;
});
});
$( "#eventAddDialog" ).dialog('open');
- } else if (dayClick == false) {
+ } else {
$('#calendar').fullCalendar( 'unselect' );
$( "#errorRightsDialog" ).dialog('open');
}