Changeset 3383


Ignore:
Timestamp:
10/20/10 19:52:24 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1249 - Correcao do erro narrado no ticket em questão

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/draw_api.js

    r3380 r3383  
    20002000                        } 
    20012001                        else{ 
    2002                                 if ( links.item( i ).href.indexOf( 'javascript:' ) !== 0 ) 
    2003                                         links.item( i ).setAttribute( 'target', '_blank' ); 
     2002                                var anchor_pattern = "http://"+location.host+location.pathname+"#";  
     2003                                 
     2004                                if ( ( links.item( i ).href.indexOf( 'javascript:' ) !== 0 ) &&  
     2005                                        (links.item( i ).href.indexOf(anchor_pattern) !== 0) ) //se não for âncora 
     2006                                                links.item( i ).setAttribute( 'target', '_blank' ); 
    20042007                        } 
    20052008                }catch(e){ 
Note: See TracChangeset for help on using the changeset viewer.