Bug 1034

Summary: cwc_button.js: suppress alert and add null check
Product: Chameleon Reporter: Bart van den Eijnden <bartvde@osgis.nl>
Component: CoreAssignee: Bart van den Eijnden <bartvde@osgis.nl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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