IDEMPIERE-558 Zk: Prevent user from clicking button twice and firing redundant requests.
This commit is contained in:
parent
f66a728b74
commit
8619761edf
|
@ -37,11 +37,13 @@ public class Button extends org.zkoss.zul.Button
|
|||
public Button()
|
||||
{
|
||||
super();
|
||||
setAutodisable("self");
|
||||
}
|
||||
|
||||
public Button(String label)
|
||||
{
|
||||
super(label);
|
||||
setAutodisable("self");
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
|
|
|
@ -32,7 +32,9 @@ public class ToolBarButton extends org.zkoss.zul.Toolbarbutton
|
|||
|
||||
private boolean pressed; // Elaine 2008/12/09
|
||||
|
||||
public ToolBarButton() {}
|
||||
public ToolBarButton() {
|
||||
setAutodisable("self");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDisabled(boolean disabled) {
|
||||
|
@ -72,6 +74,7 @@ public class ToolBarButton extends org.zkoss.zul.Toolbarbutton
|
|||
public ToolBarButton(String name) {
|
||||
super();
|
||||
this.name = name;
|
||||
setAutodisable("self");
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
|
Loading…
Reference in New Issue