How to force Ajax mode on all users

How to force Ajax mode on all users

   KB 23274        Last updated on 07/28/2017  




0.00
(0 votes)


Resolution

  • This solution is for ZCS 8.7.x.

As always, make a backup of the files that we will modify just in case.

Step1: Edit file ZmMsg.properties:

vim /opt/zimbra/jetty-distribution-9.3.5.v20151012/webapps/zimbra/WEB-INF/classes/messages/ZmMsg.properties

Inside find the lines starting with client+Mobile/Standard/Touch ( eg. clientMobile). They are one below the other. Delete the value of these attributes like so, but leave the clientPreferred value only:

clientMobile =
clientPreferred = Preferred
clientStandard =
clientTouch =


Step2: Edit file login.jsp:

vim /opt/zimbra/jetty-distribution-9.3.5.v20151012/webapps/zimbra/public/login.jsp

Inside, find the following lines:

<option value="touch" <c:if test="${client eq 'touch'}">selected</c:if>> <fmt:message key="clientTouch"/></option>
<option value="mobile" <c:if test="${client eq 'mobile'}">selected</c:if>> <fmt:message key="clientMobile"/></option>
<option value="standard" <c:if test="${client eq 'standard'}">selected</c:if>> <fmt:message key="clientStandard"/></option>
<option value="advanced" <c:if test="${client eq 'advanced'}">selected</c:if>> <fmt:message key="clientAdvanced"/></option>

And remove all of them.

Step3: Restart Zimbra

zmcontrol restart


Result

Finally, the login page will look like that. The preferred version can be configured from COS:

Forceajax.jpg



Verified Against: Zimbra Collaboration 8.7 Date Created: 28/07/2017
Article ID: https://wiki.zimbra.com/index.php?title=How_to_force_Ajax_mode_on_all_users Date Modified: 07/28/2017



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Wiki/KB reviewed by SME1 SME2 COPY EDITOR Last edit by Teodor Vizirov
Jump to: navigation, search