From 2f04b20b9e5c0621ff4e87da58a6b85bac63f698 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 10 Sep 2011 15:00:42 +0200 Subject: dialog-titlebar-close = hide --- application/views/scripts/event/index.phtml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'application/views/scripts/event/index.phtml') diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml index 3bb0fe3..d61fde2 100644 --- a/application/views/scripts/event/index.phtml +++ b/application/views/scripts/event/index.phtml @@ -89,6 +89,7 @@ var selectedEvent = null; // keydown variable } }, open: function () { + $(".ui-dialog-titlebar-close").hide(); //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); @@ -116,6 +117,7 @@ var selectedEvent = null; // keydown variable } }, open: function () { + $(".ui-dialog-titlebar-close").hide(); //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); @@ -145,7 +147,7 @@ var selectedEvent = null; // keydown variable defaultView: 'agendaWeek', allDay : false, allowCalEventOverlap: false, - overlapEventsSeparate: false, + overlapEventsSeparate: false, slotMinutes: 30, defaultEventMinutes: 30, @@ -175,9 +177,8 @@ var selectedEvent = null; // keydown variable *event.dblclick(alert('test');); *$('#calendar').dblclick(function() { self.location = "/event/edit/eventID/" + event.id;}); */ - $(this).css('opacity', .5); - //eventSelected(event); + eventSelected(event); }, @@ -203,6 +204,7 @@ var selectedEvent = null; // keydown variable } }, open: function () { + $(".ui-dialog-titlebar-close").hide(); //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); @@ -237,7 +239,7 @@ var selectedEvent = null; // keydown variable autoOpen: false, width: 600, modal: true, - title: "Try to resize " + event.title + " !", + title: "ERROR: Try to resize " + event.title, buttons: { "OK": function() { $(this).dialog("close"); @@ -245,7 +247,8 @@ var selectedEvent = null; // keydown variable } }, open: function () { - $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); + $(".ui-dialog-titlebar-close").hide(); + $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); @@ -259,7 +262,7 @@ var selectedEvent = null; // keydown variable autoOpen: false, width: 600, modal: true, - title: "Try to resize " + event.title + " !", + title: "ERROR: Try to resize " + event.title, buttons: { "OK": function() { $(this).dialog("close"); @@ -267,6 +270,7 @@ var selectedEvent = null; // keydown variable } }, open: function () { + $(".ui-dialog-titlebar-close").hide(); $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); @@ -279,6 +283,7 @@ var selectedEvent = null; // keydown variable } }, open: function () { + $(".ui-dialog-titlebar-close").hide(); //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); @@ -305,6 +310,7 @@ var selectedEvent = null; // keydown variable } }, open: function () { + $(".ui-dialog-titlebar-close").hide(); //$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); @@ -421,6 +427,7 @@ var selectedEvent = null; // keydown variable } }, open: function () { + $(".ui-dialog-titlebar-close").hide(); $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); -- cgit v1.2.3-55-g7522