Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 09-13-2007, 04:52 AM
Senior Member
 
Posts: 51
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...
Reply With Quote
  #12 (permalink)  
Old 07-25-2011, 03:20 AM
New Member
 
Posts: 4
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.