IDEMPIERE-988 Failed to process script In Advanced search for any window.
This commit is contained in:
parent
079d1afa21
commit
788d932239
|
@ -911,6 +911,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
getComponent().getParent().appendChild(win);
|
getComponent().getParent().appendChild(win);
|
||||||
showBusyMask(win);
|
showBusyMask(win);
|
||||||
LayoutUtils.openOverlappedWindow(getComponent(), win, "middle_center");
|
LayoutUtils.openOverlappedWindow(getComponent(), win, "middle_center");
|
||||||
|
win.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onChat()
|
public void onChat()
|
||||||
|
@ -2607,7 +2608,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
if (mask != null && mask.getParent() != null) {
|
if (mask != null && mask.getParent() != null) {
|
||||||
mask.detach();
|
mask.detach();
|
||||||
StringBuilder script = new StringBuilder("var w=zk.Widget.$('#");
|
StringBuilder script = new StringBuilder("var w=zk.Widget.$('#");
|
||||||
script.append(getComponent().getParent().getUuid()).append("');w.busy=false;");
|
script.append(getComponent().getParent().getUuid()).append("');if(w) w.busy=false;");
|
||||||
Clients.response(new AuScript(script.toString()));
|
Clients.response(new AuScript(script.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ zk.override(zk.Widget.prototype, "canActivate",
|
||||||
if (zUtl.isAncestor(wgt.busy, this)) {
|
if (zUtl.isAncestor(wgt.busy, this)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
jq.focusOut();
|
||||||
wgt.busy.focus(0);
|
wgt.busy.focus(0);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue