Changeset 2882 for trunk/phpgwapi


Ignore:
Timestamp:
05/31/10 09:45:49 (14 years ago)
Author:
amuller
Message:

Ticket #1009 - Corrigindo problema quando argumento não é string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/js/expressolivre/expressolivre.js

    r2874 r2882  
    207207                if ( arguments.length > 1 ) 
    208208                        for ( var j = 1; j < arguments.length; j++ ) 
    209                                 if ( arguments[ j ] && arguments[ j ].constructor == String ) 
     209                                if ( arguments[ j ] && (arguments[ j ].constructor == String || arguments[ j ].constructor == Number)) 
    210210                                        _phrase = _phrase.replace( "%" + j, arguments[ j ] ); 
    211211 
Note: See TracChangeset for help on using the changeset viewer.