]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1083 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Wed, 13 Jun 2007 05:30:40 +0000 (05:30 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Wed, 13 Jun 2007 05:30:40 +0000 (05:30 +0000)
UI/WebServerResources/JavascriptAPIExtensions.js
UI/WebServerResources/SchedulerUI.js

index f1756edc87023e7aee91746ba05c5528f561ffe5..7cdc85ec03a221ea72462635f472fc3e2399308a 100644 (file)
@@ -109,15 +109,14 @@ Date.prototype.getHourString = function() {
 }
 
 Date.prototype.getDisplayHoursString = function() {
-   var hoursString = this.getHours();
+   var hoursString = "" + this.getHours();
    if (hoursString.length == 1)
      hoursString = '0' + hoursString;
 
-   var minutesString = this.getMinutes();
+   var minutesString = "" + this.getMinutes();
    if (minutesString.length == 1)
      minutesString = '0' + minutesString;
 
-
    return hoursString + ":" + minutesString;
 }
 
index 2f717ac713a2e5a00b91c052ddeca1da8b86a2ef..d5993316f376ffa6d7dbc5b09ad0c0ff60eb1a49 100644 (file)
@@ -611,7 +611,13 @@ function drawCalendarEvent(eventData, sd, ed) {
 
    var divs = new Array();
 
-   var title = eventData[3];
+   var title;
+   if (currentView == "monthview"
+       && (eventData[7] == 0))
+      title = startDate.getDisplayHoursString() + " " + eventData[3];
+   else
+      title = eventData[3];
+
 //    log("title: " + title); 
 //    log("viewS: " + viewStartDate);
    var startHour = null;
@@ -1419,11 +1425,16 @@ function onCalendarRemove(event) {
 function configureSearchField() {
    var searchValue = $("searchValue");
 
-   Event.observe(searchValue, "mousedown",  onSearchMouseDown.bindAsEventListener(searchValue));
-   Event.observe(searchValue, "click",  popupSearchMenu.bindAsEventListener(searchValue));
-   Event.observe(searchValue, "blur",  onSearchBlur.bindAsEventListener(searchValue));
-   Event.observe(searchValue, "focus",  onSearchFocus.bindAsEventListener(searchValue));
-   Event.observe(searchValue, "keydown",  onSearchKeyDown.bindAsEventListener(searchValue));
+   Event.observe(searchValue, "mousedown",
+                onSearchMouseDown.bindAsEventListener(searchValue));
+   Event.observe(searchValue, "click",
+                popupSearchMenu.bindAsEventListener(searchValue));
+   Event.observe(searchValue, "blur",
+                onSearchBlur.bindAsEventListener(searchValue));
+   Event.observe(searchValue, "focus",
+                onSearchFocus.bindAsEventListener(searchValue));
+   Event.observe(searchValue, "keydown",
+                onSearchKeyDown.bindAsEventListener(searchValue));
 }
 
 function configureLists() {