Changeset 2741


Ignore:
Timestamp:
05/07/10 17:11:51 (14 years ago)
Author:
rodsouza
Message:

Ticket #1058 - Tratando javascripts inline que não eram capturados.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/js/tools/xlink.js

    r2732 r2741  
    7171                function _handler( data ) 
    7272                { 
     73                        data = data.replace( /\n/g, '__LINE_FEED_CHARACTER__' ); 
    7374                        var js = data.match( /<script[^>]*>.*?<\/script>/gi ); 
    7475                        if ( js ) 
     
    8182 
    8283                                        if ( _type[ 2 ] == undefined || _type[ 2 ].length == 0 ) 
    83                                                 _script.inline( _type[ 3 ] ); 
     84                                                _script.inline( _type[ 3 ].replace( /__LINE_FEED_CHARACTER__/g, '\n' ) ); 
    8485                                        else 
    8586                                        { 
     
    99100                                } 
    100101                        } 
     102                        data = data.replace( /__LINE_FEED_CHARACTER__|[\r\t]/g, '' ); 
    101103 
    102104                        var el = document.createElement( 'div' ); 
Note: See TracChangeset for help on using the changeset viewer.