WebButton: Don't react to click when disabled.
[GB.WEB.GUI] * BUG: WebButton: Don't react to click when disabled.
This commit is contained in:
parent
ef32c2e7a2
commit
4bda6391ec
1 changed files with 10 additions and 8 deletions
|
@ -85,14 +85,16 @@ Public Sub _BeforeRender()
|
|||
Dim vSave As Variant
|
||||
|
||||
Print "<div"; Me._GetClassId();
|
||||
If $bImmediate Then
|
||||
Print " onclick=\"";
|
||||
vSave = WebForm._BeginJavascript()
|
||||
Raise Click
|
||||
WebForm._EndJavascript(vSave)
|
||||
Print "\"";
|
||||
Else
|
||||
Print Me._GetEventJS("onclick", "click");
|
||||
If Me.Enabled Then
|
||||
If $bImmediate Then
|
||||
Print " onclick=\"";
|
||||
vSave = WebForm._BeginJavascript()
|
||||
Raise Click
|
||||
WebForm._EndJavascript(vSave)
|
||||
Print "\"";
|
||||
Else
|
||||
Print Me._GetEventJS("onclick", "click");
|
||||
Endif
|
||||
Endif
|
||||
|
||||
Me._RenderStyleSheet()
|
||||
|
|
Loading…
Reference in a new issue