Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: [SOLVED] Howto change the default duration of a meeting.

  1. #11
    Join Date
    Aug 2007
    Location
    France - Bretagne
    Posts
    55
    Rep Power
    8

    Default

    I found the code to modify in order to reduce minimal size of appointments :
    In /opt/zimbra/tomcat/webapps/zimbra/js/ZimbraMail_all.js at line 33633 (for Zimbra 4.5)
    Code:
    ZmCalColView.prototype._getBoundsForDate=function(d,_2091,col){
    var _2093=_2091/1000/60;
    // Old value :
    // _2093=Math.max(_2093,22);
    // New value :
    _2093=Math.max(_2093,11);
    var h=d.getHours();
    var m=d.getMinutes();
    if(col==null&&!this._scheduleMode){
    var day=this._getDayForDate(d);
    col=day?this._columns[day.index]:null;
    }
    (...)
    ZmCalColView.prototype._getBoundsForCalendar=function(d,_2098,_2099){
    var _209a=_2098/1000/60;
    // Old value :
    // _209a=Math.max(_209a,22);
    // New value :
    _209a=Math.max(_209a,11);
    var h=d.getHours();
    var m=d.getMinutes();
    var col=this._getColForFolderId(_2099);
    if(col==null){
    return null;
    }
    There remains a problem : the vertical bar displaying busy state in "Programme" (in french) view does not show 10 minutes free places.
    No time to look at this now...

  2. #12
    Join Date
    Oct 2006
    Location
    montpellier - France
    Posts
    6
    Rep Power
    9

    Default Edit default duration in zimbra 7.1.1

    Hi,
    To change the default duration of an vent in zimbra follow this quick howto guide:
    1- SSH to your zimbra host
    2- Log in as zimbra user
    Code:
    # su - zimbra
    3- Go to the following directory:
    Code:
     $ cd /opt/zimbra/jetty/webapps/zimbra/js
    4- Make some backup:
    Code:
    $ cp Calendar_all.js Calendar_all.js.bck
         $ mv Calendar_all.js.zgz Calendar_all.js.zgz.bck
    5- Edit Calendar_all.js:
    Code:
    $ vi Calendar_all.js
    goto line 9232 and replace the following line
    PHP Code:
    ZmCalColView._HOUR_HEIGHT 42
    by
    PHP Code:
    ZmCalColView._HOUR_HEIGHT 84
    Now save and exit
    6- Make the gzip file :
    Code:
    $ gzip -S .zgz Calendar_all.js
    7- Remove your browser caches and refresh your zimbra app.
    That 'all, you now have a 15 mins default event calendar.

  3. #13
    Join Date
    Oct 2006
    Location
    montpellier - France
    Posts
    6
    Rep Power
    9

    Default Edit for zimbra 7.2

    The line number is now 9327

  4. #14
    Join Date
    May 2012
    Posts
    8
    Rep Power
    3

    Default

    Thanks for this tip. However, do you notice also that the workhour period (in white in the calendar) is from 4h00 to 8h30 (if your workhour period is 8h00 - 17h00).
    How can I change this ? I want the white zone in the calendar from 8h00 to 17h00, and not from 4h to 8h30.

    Thanks for your answer.
    MG
    Release 7.2.0_GA_2669.UBUNTU10_64 UBUNTU10_64 NETWORK edition

  5. #15
    Join Date
    May 2012
    Posts
    8
    Rep Power
    3

    Default

    I have found the solution. In the Calendar_all.js, just change the following line :
    line 10770 halfHourHeight = 21,
    by
    line 10770 halfHourHeight = ZmCalColView._HALF_HOUR_HEIGHT,

    Then, in order to have the events in the calendar not bigger than the quarter :
    replace
    10510 durationMinutes = Math.max(durationMinutes, 22);
    by
    10510 durationMinutes = Math.max(durationMinutes, 11);

    and replace
    10525 durationMinutes = Math.max(durationMinutes, 22);
    by
    10525 durationMinutes = Math.max(durationMinutes, 11);

    restart then app and your brower ;o)
    PS: this works only for Zimbra 7.2
    Last edited by mickael.garnier; 06-21-2012 at 06:41 AM.
    Release 7.2.0_GA_2669.UBUNTU10_64 UBUNTU10_64 NETWORK edition

  6. #16
    Join Date
    Oct 2006
    Location
    montpellier - France
    Posts
    6
    Rep Power
    9

    Default

    Quote Originally Posted by mickael.garnier View Post
    I have found the solution. In the Calendar_all.js, just change the following line :
    line 10770 halfHourHeight = 21,
    by
    line 10770 halfHourHeight = ZmCalColView._HALF_HOUR_HEIGHT,

    Then, in order to have the events in the calendar not bigger than the quarter :
    replace
    10510 durationMinutes = Math.max(durationMinutes, 22);
    by
    10510 durationMinutes = Math.max(durationMinutes, 11);

    and replace
    10525 durationMinutes = Math.max(durationMinutes, 22);
    by
    10525 durationMinutes = Math.max(durationMinutes, 11);

    restart then app and your brower ;o)
    PS: this works only for Zimbra 7.2
    Thanks, i will try your tip as soon as possible

Similar Threads

  1. [SOLVED] Howto: Update ClamAV
    By unilogic in forum Administrators
    Replies: 9
    Last Post: 12-12-2007, 05:28 AM
  2. Replies: 45
    Last Post: 11-28-2007, 06:39 PM
  3. Change the default mail sync query to a phone
    By phingers in forum Zimbra Mobile
    Replies: 1
    Last Post: 07-31-2007, 09:46 PM
  4. Perdition not restart !!!!
    By olibite in forum Administrators
    Replies: 2
    Last Post: 05-22-2007, 04:50 AM
  5. perdition won't start after 4.5 Upgrade
    By freeformz in forum Administrators
    Replies: 1
    Last Post: 01-29-2007, 07:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •