Sha256: 513a761e50a07bcac46fdf45c9ca82ebe84cf3903f2622d7fdc60da04a64c54c
Contents?: true
Size: 566 Bytes
Versions: 52
Compression:
Stored size: 566 Bytes
Contents
$( function() { $( '.plugin_yahoo_search_result_raw' ).each( function( index ) { $(this).click( function() { var pos = $($('td', $(this)).get(3)).text().split(','); sp = parseInt(pos[0]); ep = parseInt(pos[1]); var o = $( 'textarea[name="body"]' ).get( 0 ); o.focus(); if ( jQuery.browser.msie ) { var range = document.selection.createRange(); range.collapse(); range.moveStart( 'character', sp ); range.moveEnd( 'character', ep ); range.select(); } else { o.setSelectionRange( sp , sp + ep ); } } ); } ); } );
Version data entries
52 entries across 46 versions & 2 rubygems