summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-28 16:47:18 +0200
committerSebastian Wagner2011-09-28 16:47:18 +0200
commit0922947a8c004374d20d6b9d62939d5cbc95f4b0 (patch)
tree40d015b6b83673646ff9d3cbe147be879060c5b7 /application/views/scripts/event/index.phtml
parentbugfix (diff)
downloadpoolctrl-0922947a8c004374d20d6b9d62939d5cbc95f4b0.tar.gz
poolctrl-0922947a8c004374d20d6b9d62939d5cbc95f4b0.tar.xz
poolctrl-0922947a8c004374d20d6b9d62939d5cbc95f4b0.zip
bugfix
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rwxr-xr-xapplication/views/scripts/event/index.phtml6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 689bd55..dfca0a0 100755
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -258,10 +258,12 @@ 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
@@ -303,7 +305,7 @@ var dayClick = false;
if($("#poolselectbox option:selected").val() == 'default') {
$( "#noPoolSelectedDialog" ).dialog('open');
- } else if ($.get("/event/checkright/rightShortcut/ec")) {
+ } else if ($.get("/event/checkright/rightShortcut/ec") && evClick == false) {
$(function() {
$( "#eventAddDialog" ).dialog({
autoOpen: false,
@@ -327,7 +329,7 @@ var dayClick = false;
});
});
$( "#eventAddDialog" ).dialog('open');
- } else {
+ } else if (!$.get("/event/checkright/rightShortcut/ec") && evClick == false) {
$('#calendar').fullCalendar( 'unselect' );
$( "#errorRightsDialog" ).dialog('open');
}