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

Version Path
tdiary-contrib-5.0.10 js/yahoo_kousei.js
tdiary-contrib-5.0.9 js/yahoo_kousei.js
tdiary-contrib-5.0.8 js/yahoo_kousei.js
tdiary-contrib-5.0.7 js/yahoo_kousei.js
tdiary-contrib-5.0.6 js/yahoo_kousei.js
tdiary-contrib-5.0.5 js/yahoo_kousei.js
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/js/yahoo_kousei.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-fa9c20aa0d97/js/yahoo_kousei.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-f08988dfa0f6/js/yahoo_kousei.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-a3c5f37278c4/js/yahoo_kousei.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/js/yahoo_kousei.js
tdiary-contrib-5.0.4 js/yahoo_kousei.js
tdiary-5.0.4 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/js/yahoo_kousei.js
tdiary-contrib-5.0.3 js/yahoo_kousei.js
tdiary-contrib-5.0.2 js/yahoo_kousei.js
tdiary-contrib-5.0.1 js/yahoo_kousei.js
tdiary-contrib-5.0.0 js/yahoo_kousei.js
tdiary-contrib-4.2.1 js/yahoo_kousei.js
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/bundler/gems/tdiary-contrib-2ab36447ae2a/js/yahoo_kousei.js
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/bundler/gems/tdiary-contrib-d189eb6688f1/js/yahoo_kousei.js