Ticket #159: fix_tooltop_on_truncate.patch

File fix_tooltop_on_truncate.patch, 0.7 KB (added by black silence, 3 years ago)

patch for comment 8

  • datatable.js

     
    605605                                 
    606606                                if( urlToLink.match("javascript:") ) 
    607607                                { 
    608                                         $(this).html( '<a href="#" onClick="' + urlToLink.replace("javascript:","") + '">' + imgToPrepend + $(this).html() + '</a>');                            
     608                                        $(this).prepend(imgToPrepend).wrap('<a href="#" onclick="' + urlToLink.replace("javascript:","") + '"></a>'); 
    609609                                } 
    610610                                else 
    611611                                { 
    612                                         $(this).html( '<a target="_blank" href="' + urlToLink + '">' + imgToPrepend + $(this).html() + '</a>'); 
     612                                        $(this).prepend(imgToPrepend).wrap('<a target="_blank" href="' + urlToLink + '"></a>'); 
    613613                                } 
    614614                        }); 
    615615                }