summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
authorsebastian wagner2011-09-10 01:37:26 +0200
committersebastian wagner2011-09-10 01:37:26 +0200
commitd6293f80fbeb34f466663bd011e29827123255c1 (patch)
tree22e8fa9934627096dc48561bb98575c3a6b7b053 /application/views/scripts/event/index.phtml
parentwdhEvent dialog added (diff)
downloadpoolctrl-d6293f80fbeb34f466663bd011e29827123255c1.tar.gz
poolctrl-d6293f80fbeb34f466663bd011e29827123255c1.tar.xz
poolctrl-d6293f80fbeb34f466663bd011e29827123255c1.zip
add event dialogs
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rw-r--r--application/views/scripts/event/index.phtml54
1 files changed, 50 insertions, 4 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 555c661..cb3e3af 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -31,7 +31,7 @@ var selectedEvent = null; // keydown variable
// dialog for deleting wdhEvents
$(function() {
- $( "#dialog" ).dialog({
+ $( "#deleteWdhEventDialog" ).dialog({
autoOpen: false,
width: 600,
modal: true,
@@ -48,6 +48,9 @@ var selectedEvent = null; // keydown variable
$(this).dialog("close");
$("form:eq(2)").submit();
}
+ },
+ open: function () {
+ //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error");
}
});
});
@@ -82,7 +85,7 @@ var selectedEvent = null; // keydown variable
$('#calendar').fullCalendar( 'removeEvents', selectedEvent.id );
$('#calendar').fullCalendar( 'rerenderEvents' );
}
- }else $( "#dialog" ).dialog('open'); {
+ }else $( "#deleteWdhEventDialog" ).dialog('open'); {
}
}
});
@@ -170,6 +173,27 @@ var selectedEvent = null; // keydown variable
eventDrop: function( event, dayDelta, minuteDelta, allDay, revertFunc ) {
+ $(function() {
+ $( "#defaultDialog" ).dialog({
+ autoOpen: false,
+ width: 600,
+ modal: true,
+ title: event.title + " was moved to " + event.start,
+ buttons: {
+ "Cancel": function() {
+ $(this).dialog("close");
+ },
+ "OK": function() {
+ $(this).dialog("close");
+ $("form:eq(1)").submit();
+ }
+ },
+ open: function () {
+ //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error");
+ }
+ });
+ });
+ //$( "#defaultDialog" ).dialog('open');
if (!confirm(event.title + " was moved to " + event.start + "\n\n" + "Are you sure about this change?")) {
revertFunc();
}else{
@@ -266,11 +290,33 @@ var selectedEvent = null; // keydown variable
</script>
-<!-- delte wdhEvent dialog -->
-<div id="dialog" style="display:none">
+<!-- DIALOG WINDOWS -->
+
+<!-- delete wdhEvent -->
+<div id="deleteWdhEventDialog" style="display:none">
<p>Do you want to delete any event occurring this event or just the selected?</p>
</div>
+<!-- eventSelect -->
+<div id="eventSelectDialog" style="display:none">
+ <p>Are you sure to add this Event?</p>
+</div>
+
+<!-- eventResize boot -->
+<div id="eventResizeBootDialog" style="display:none">
+ <p>You can´t change the EndTime of a Boot Event!</p>
+</div>
+
+<!-- eventResize shutdown -->
+<div id="eventResizeShutdownDialog" style="display:none">
+ <p>You can´t change the EndTime of a Shutdown Event!</p>
+</div>
+
+<!-- default -->
+<div id="defaultDialog" style="display:none">
+ <p>Are you sure about this change?</p>
+</div>
+
<br />
<br />