IDEMPIERE-3182:auto fill password don't work util you touch password field
a complete solution.
This commit is contained in:
parent
e20ad177de
commit
abaf405158
|
@ -174,8 +174,6 @@ public class LoginPanel extends Window implements EventListener<Event>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onUserIdChange(AD_User_ID);
|
onUserIdChange(AD_User_ID);
|
||||||
if (txtUserId.getValue().length() > 0)
|
|
||||||
txtPassword.focus();
|
|
||||||
chkRememberMe.setChecked(true);
|
chkRememberMe.setChecked(true);
|
||||||
}
|
}
|
||||||
if (MSystem.isZKRememberPasswordAllowed()) {
|
if (MSystem.isZKRememberPasswordAllowed()) {
|
||||||
|
|
|
@ -41,6 +41,7 @@ Copyright (C) 2007 Ashley G Ramdass.
|
||||||
});
|
});
|
||||||
|
|
||||||
zk.afterLoad('zul.wgt', function () {
|
zk.afterLoad('zul.wgt', function () {
|
||||||
|
|
||||||
// should filter out for only component inside standard window or component wish fire this event,
|
// should filter out for only component inside standard window or component wish fire this event,
|
||||||
// or ever rise other event like start editting to distinguish with true onChange event
|
// or ever rise other event like start editting to distinguish with true onChange event
|
||||||
zk.override(zul.inp.InputWidget.prototype, "doInput_", function (evt) {
|
zk.override(zul.inp.InputWidget.prototype, "doInput_", function (evt) {
|
||||||
|
@ -62,6 +63,38 @@ Copyright (C) 2007 Ashley G Ramdass.
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
zk.override(zk.Widget.prototype, "onAutofill", function (evt) {
|
||||||
|
id.zk.Extend.fakeOnchange (this);//fire change event to move to edit
|
||||||
|
});
|
||||||
|
|
||||||
|
zk.override(zul.inp.Textbox.prototype, "bind_", function (dt, skipper, after) {
|
||||||
|
if (!this.$bind_)
|
||||||
|
return;
|
||||||
|
|
||||||
|
this.$bind_(dt, skipper, after);
|
||||||
|
|
||||||
|
if (this.getType () != "password"){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.domListen_(this.$n(), "onChange", "onAutofill");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
zk.override(zul.inp.Textbox.prototype, "unbind_", function (dt, skipper) {
|
||||||
|
if (!this.$unbind_)
|
||||||
|
return;
|
||||||
|
|
||||||
|
this.$unbind_(dt, skipper);
|
||||||
|
|
||||||
|
if (this.getType () != "password"){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.domUnlisten_(this.$n(), "onChange", "onAutofill"); //unlisten
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
zk.afterLoad('zul.mesh', function () {
|
zk.afterLoad('zul.mesh', function () {
|
||||||
|
|
Loading…
Reference in New Issue