Bug 1034 - cwc_button.js: suppress alert and add null check
: cwc_button.js: suppress alert and add null check
Status: RESOLVED FIXED
: Chameleon
Core
: 2.2
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-05-16 07:19 by
Modified: 2005-05-16 07:28 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-05-16 07:19:56
The alert is not useful for users and only comes into play when using a widget
with the visible attribute set to false (this can be quite useful when wanting
to use javascript code generated by the widget).

So I propose removing the alert.

    else
    {
        //alert( "image object for " + this.szImageName + " not found?" );
    }

Another null check needs to be added for everything to work again since there
are now buttons in the application without images:

function CWCButton_SetState( nState )
{
    if (!this.oImage) return false;
    ...
------- Comment #1 From 2005-05-16 07:20:26 -------
I will take care of this today.
------- Comment #2 From 2005-05-16 07:28:48 -------
Fixed in both 2.0 and 2.2.

2.2: revision 1.8
2.0: revision 1.8