diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Locationbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Locationbox.java index 2b2e9ecdf7..6f065d9812 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Locationbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Locationbox.java @@ -27,11 +27,25 @@ public class Locationbox extends EditorBox public Locationbox() { super(); + txt.setReadonly(true); } public Locationbox(String text) { - super(); + this(); setText(text); } + + @Override + public void setEnabled(boolean enabled) { + super.setEnabled(enabled); + txt.setReadonly(true); + } + + @Override + public boolean isEnabled() { + return btn.isEnabled(); + } + + } diff --git a/org.adempiere.ui.zk/theme/default/css/theme.css.dsp b/org.adempiere.ui.zk/theme/default/css/theme.css.dsp index 29cc78624b..7df150eb1f 100644 --- a/org.adempiere.ui.zk/theme/default/css/theme.css.dsp +++ b/org.adempiere.ui.zk/theme/default/css/theme.css.dsp @@ -1108,7 +1108,7 @@ tr.z-group { } .z-textbox-readonly, .z-intbox-readonly, .z-longbox-readonly, .z-doublebox-readonly, -.z-decimalbox-readonly, .z-datebox-readonly, .z-timebox-readonly { +.z-decimalbox-readonly, .z-datebox-readonly, .z-timebox-readonly, .editor-input-disd { background-color: #F0F0F0; }