summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rw-r--r--application/views/scripts/event/index.phtml14
1 files changed, 12 insertions, 2 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 2ca3194..eb62604 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -25,6 +25,12 @@
$(document).ready(function() {iniCalendar();});
var lastview;
+var selected = true;
+
+ function eventSelected(event) {
+ if (selected) { event.borderColor = 'black';
+ }
+ }
function showCalendar() {
$("#calendar").show();
@@ -101,8 +107,12 @@ var lastview;
eventClick: function( event, jsEvent, view ) {
$('#calendar').dblclick(function() { self.location = "/event/edit/eventID/" + event.id;});
- $('#calendar').unbind(event);
-
+ //$('#calendar').unbind(event);
+
+ //eventSelected(event);
+ event.borderColor = 'black';
+ alert(event.borderColor);
+
$(document).keydown(function (e) {
if (e.keyCode == 8 || e.keyCode == 46) {
if (confirm("Are you sure to delete " + event.title + " ?")) {