How to force Ajax mode on all users: Difference between revisions
(→Result) |
|||
(One intermediate revision by the same user not shown) | |||
Line 36: | Line 36: | ||
===Result=== | ===Result=== | ||
Finally, the login page will look like that. The preferred version can be configured from COS: | Finally, the login page will look like that. The ''preferred'' version can be configured from COS: | ||
[[File:forceajax.jpg]] | [[File:forceajax.jpg]] | ||
Line 43: | Line 43: | ||
{{Article Footer|Zimbra Collaboration 8.7| | {{Article Footer|Zimbra Collaboration 8.7| 28/07/2017}} | ||
{{NeedSME|SME1|SME2|COPY EDITOR}} | {{NeedSME|SME1|SME2|COPY EDITOR}} |
Revision as of 12:39, 28 July 2017
How to force Ajax mode on all users
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: