summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rwxr-xr-xapplication/controllers/EventController.php4
-rwxr-xr-xapplication/views/scripts/event/index.phtml31
2 files changed, 33 insertions, 2 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 5bc200f..910a5a0 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -324,10 +324,10 @@ class EventController extends Zend_Controller_Action
$this->_redirect('/');
}
}
- if($event->getPbs_bootmenuID()) {
+ if($event->getPbs_bootmenuID() && $event->getRepeat() == 0) {
$bootmenuApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['deletebootmenu'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', "bootmenuid=" . $event->getPbs_bootmenuID());
}
- if($event->getPbs_filterID()) {
+ if($event->getPbs_filterID() && $event->getRepeat() != 1) {
$filterApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['deletefilter'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', "filterid=" . $event->getPbs_filterID());
}
try {
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 2741421..7056e80 100755
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -96,6 +96,12 @@ var dayClick = false;
$('#calendar').fullCalendar("addEventSource", "/event/eventlist/poolID/" + poolID);
}
+ $(window).load(function() {
+ var formularOverlappVar = getOverlappingVar();
+ if(formularOverlappVar == 1) {
+ $( "#formularOverlappingDialog" ).dialog('open');}
+ });
+
/*
* KEYDOWN FUNCTION
* delete selected event by key del(8) OR entf(46)
@@ -998,6 +1004,25 @@ var dayClick = false;
});
});
+//initialize formularOverlappingDialog Dialog
+ $(function() {
+ $( "#formularOverlappingDialog" ).dialog({
+ autoOpen: false,
+ width: 600,
+ modal: true,
+ title: "ERROR",
+ buttons: {
+ "OK": function() {
+ $(this).dialog("close");
+ }
+ },
+ open: function () {
+ $(".ui-dialog-titlebar-close").hide();
+ $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error");
+ }
+ });
+ });
+
</script>
<!-- DIALOG WINDOWS -->
@@ -1081,6 +1106,12 @@ between two events.</p>
<p>Please choose another position</p>
</div>
+<!-- formularOverlapping Dialog -->
+<div id="formularOverlappingDialog" style="display: none">
+<p>There exists at least one collision between your Events!</p>
+<p>Please choose another position and try again.</p>
+</div>
+
<!-- errorEditImmediate -->
<div id="errorEditImmediate" style="display: none">
<p>You canĀ“t edit an Immediate-Event!</p>