From 6213d823ed27e1c328e685d5243d303067d488fa Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 30 Aug 2017 18:09:32 +0200 Subject: [PATCH] IDEMPIERE-3449 Chrome autocomplete contact email/password by user email after record saved --- org.adempiere.base/src/org/compiere/model/MSysConfig.java | 3 ++- .../WEB-INF/src/org/adempiere/webui/component/Textbox.java | 1 + .../WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MSysConfig.java b/org.adempiere.base/src/org/compiere/model/MSysConfig.java index 04d21dc6d1..8b9ebda7cc 100644 --- a/org.adempiere.base/src/org/compiere/model/MSysConfig.java +++ b/org.adempiere.base/src/org/compiere/model/MSysConfig.java @@ -42,7 +42,7 @@ public class MSysConfig extends X_AD_SysConfig /** * */ - private static final long serialVersionUID = -5006794875155447942L; + private static final long serialVersionUID = -1378971388226313818L; public static final String ADDRESS_VALIDATION = "ADDRESS_VALIDATION"; public static final String ALERT_SEND_ATTACHMENT_AS_XLS = "ALERT_SEND_ATTACHMENT_AS_XLS"; @@ -160,6 +160,7 @@ public class MSysConfig extends X_AD_SysConfig public static final String ZK_FOOTER_SERVER_MSG = "ZK_FOOTER_SERVER_MSG"; public static final String ZK_GRID_EDIT_MODELESS = "ZK_GRID_EDIT_MODELESS"; public static final String ZK_INFO_NUM_PAGE_PRELOAD = "ZK_INFO_NUM_PAGE_PRELOAD"; + public static final String ZK_LOGIN_ALLOW_CHROME_SAVE_PASSWORD = "ZK_LOGIN_ALLOW_CHROME_SAVE_PASSWORD"; public static final String ZK_LOGIN_ALLOW_REMEMBER_ME = "ZK_LOGIN_ALLOW_REMEMBER_ME"; public static final String ZK_LOGO_LARGE = "ZK_LOGO_LARGE"; public static final String ZK_LOGO_SMALL = "ZK_LOGO_SMALL"; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Textbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Textbox.java index b9e132aad9..0875a884bc 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Textbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Textbox.java @@ -124,6 +124,7 @@ public class Textbox extends org.zkoss.zul.Textbox implements EventListener txtPassword = new Textbox(); txtPassword.setId("txtPassword"); txtPassword.setType("password"); - txtPassword.setCols(25); // txtPassword.setMaxlength(40); ZKUpdateUtil.setWidth(txtPassword, "220px"); + if (MSysConfig.getBooleanValue(MSysConfig.ZK_LOGIN_ALLOW_CHROME_SAVE_PASSWORD, true)) + txtPassword.setClientAttribute("autocomplete", null); lstLanguage = new Combobox(); lstLanguage.setAutocomplete(true);