diff --git a/UI/WebServerResources/MailerUI.js b/UI/WebServerResources/MailerUI.js index eef774594..00ed21338 100644 --- a/UI/WebServerResources/MailerUI.js +++ b/UI/WebServerResources/MailerUI.js @@ -640,8 +640,9 @@ function messageListCallback(http) { row.selectElement(); lastClickedRow = row.rowIndex - $(row).up('table').down('thead').getElementsByTagName('tr').length; var rowPosition = row.rowIndex * row.getHeight(); - if (rowPosition > div.getHeight()) - div.scrollTop = rowPosition; // scroll to selected message + if (rowPosition < div.scrollTop + || rowPosition > div.scrollTop + div.getHeight ()) + div.scrollTop = rowPosition; // scroll to selected message } else $("messageContent").update(); diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 550344dc5..a6c68041a 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -2082,24 +2082,35 @@ function drawNowLine () { var d = new Date(); var hours = d.getHours(); var minutes = d.getMinutes(); - var test = $$("DIV#daysView DIV.days DIV.day"); - // day view - if (test.length == 1) - var targets = $$("DIV#daysView DIV.days DIV.day DIV.events DIV.clickableHourCell"); - else + + if (currentView == "dayview") { + var today = new Date (); + var m = parseInt(today.getMonth ()) + 1; + var d = today.getDate (); + if (m < 10) + m = "0" + m; + if (d < 10) + d = "0" + d; + var day = today.getFullYear () + "" + m + "" + d; + var targets = $$("DIV#daysView DIV.days DIV.day[day=" + day + + "] DIV.events DIV.clickableHourCell"); + } + else if (currentView == "weekview") var targets = $$("DIV#daysView DIV.days DIV.dayOfToday DIV.events DIV.clickableHourCell"); - var target = targets[hours]; + if (targets) { + var target = targets[hours]; - if (target) { - var div = $("nowLineDisplay"); - if (!div) - div = new Element ("div", {'id': 'nowLineDisplay'}); + if (target) { + var div = $("nowLineDisplay"); + if (!div) + div = new Element ("div", {'id': 'nowLineDisplay'}); - div.style.top = parseInt (((minutes * target.offsetHeight) / 60) - 1) + "px"; - target.appendChild (div); + div.style.top = parseInt (((minutes * target.offsetHeight) / 60) - 1) + "px"; + target.appendChild (div); - setTimeout ("drawNowLine ();", 60000); // 1 min. + setTimeout ("drawNowLine ();", 60000); // 1 min. + } } } diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index 5b0c84e44..d0a78a9fd 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -749,7 +749,8 @@ function onWindowResize(event) { var height = Math.floor(window.height() - editor.offsetTop); if (Prototype.Browser.IE) { - editor.style.top = 0; + editor.style.width = ''; + editor.style.height = ''; height += 3; } diff --git a/debian/control b/debian/control index facde4ce1..14fa1a7eb 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.7.3 Package: sogo Section: web Architecture: i386 -Depends: gnustep-base-common, gnustep-base-runtime, libsope-core, libsope-appserver, libsope-ldap, libsope-cards +Depends: gnustep-base-common, gnustep-base-runtime, libsope-core4.9, libsope-appserver4.9, libsope-ldap4.9 Description: SOGo SOGo is a groupware server built around OpenGroupware.org (OGo) and the SOPE application server. It focuses on scalability. diff --git a/debian/rules b/debian/rules index f072fa78a..8e2c65928 100755 --- a/debian/rules +++ b/debian/rules @@ -46,7 +46,7 @@ install-arch: dh_installdirs -s $(MAKE) DESTDIR=$(CURDIR)/debian/tmp GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install - mkdir -p debian/tmp/etc/init.d/sogod + mkdir -p debian/tmp/etc/init.d mkdir -p debian/tmp/etc/cron.daily mkdir -p debian/tmp/var/run/sogo mkdir -p debian/tmp/var/log/sogo diff --git a/debian/sogo.postinst b/debian/sogo.postinst index eac9b086d..35cac7bd0 100755 --- a/debian/sogo.postinst +++ b/debian/sogo.postinst @@ -2,17 +2,16 @@ set -e /usr/sbin/groupadd -f -K GID_MIN=100 -K GID_MAX=500 sogo -USERS=\`getent passwd|grep sogo|sed -e 's/\([a-zA-Z]*:\)\(.*\)/\1/g'\` +USERS=`getent passwd | grep sogo | sed -e 's/\([a-zA-Z]*\):.*/\1/g'` -if [ \"\$USERS\" != \"sogo:\" ] ; then -echo \"Adding user sogo\" -useradd -d /tmp -g sogo -K UID_MIN=100 -K UID_MAX=500 -K PASS_MAX_DAYS=-1 -s -/bin/false sogo +if [ "$USERS" != "sogo" ] ; then + echo "Adding user sogo" + useradd -d /tmp -g sogo -K UID_MIN=100 -K UID_MAX=500 -K PASS_MAX_DAYS=-1 -s /bin/false sogo fi -chown sogo /var/run/sogo -chown sogo /var/spool/sogo -chown sogo /var/log/sogo +chown -R sogo /var/run/sogo +chown -R sogo /var/spool/sogo +chown -R sogo /var/log/sogo update-rc.d sogod defaults /sbin/ldconfig diff --git a/debian/sogo.postrm b/debian/sogo.postrm index c0074bd72..28f349900 100755 --- a/debian/sogo.postrm +++ b/debian/sogo.postrm @@ -1,4 +1,4 @@ #!/bin/sh set -e -userdel sogo||true -update-rc.d SOGo remove ||true +userdel sogo || true +update-rc.d SOGo remove || true