From 2553a96f9eb29ca334d713aa1830f5cce3045f86 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Apr 2010 04:40:47 +0000 Subject: * {lib,test}/rdoc: removed trailing spaces. reapplied r22784. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/generator/template/darkfish/js/darkfish.js | 10 +++++----- lib/rdoc/generator/template/darkfish/js/quicksearch.js | 14 +++++++------- lib/rdoc/generator/template/darkfish/rdoc.css | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'lib/rdoc/generator') diff --git a/lib/rdoc/generator/template/darkfish/js/darkfish.js b/lib/rdoc/generator/template/darkfish/js/darkfish.js index 43528fdde4..84565c1e2d 100644 --- a/lib/rdoc/generator/template/darkfish/js/darkfish.js +++ b/lib/rdoc/generator/template/darkfish/js/darkfish.js @@ -1,10 +1,10 @@ /** - * + * * Darkfish Page Functions * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $ - * + * * Author: Michael Granger - * + * */ /* Provide console simulation for firebug-less environments */ @@ -58,7 +58,7 @@ function hookQuickSearch() { var toggle = $(this).parents('.section').find('h3 .search-toggle'); // console.debug( "Toggle is: %o", toggle ); var qsbox = $(this).parents('form').get( 0 ); - + $(this).quicksearch( this, searchElems, { noSearchResultsIndicator: 'no-class-search-results', focusOnLoad: false @@ -87,7 +87,7 @@ function highlightTarget( anchor ) { function highlightLocationTarget() { console.debug( "Location hash: %s", window.location.hash ); if ( ! window.location.hash || window.location.hash.length == 0 ) return; - + var anchor = window.location.hash.substring(1); console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" ); diff --git a/lib/rdoc/generator/template/darkfish/js/quicksearch.js b/lib/rdoc/generator/template/darkfish/js/quicksearch.js index 332772ac71..70dbd33cd9 100644 --- a/lib/rdoc/generator/template/darkfish/js/quicksearch.js +++ b/lib/rdoc/generator/template/darkfish/js/quicksearch.js @@ -1,10 +1,10 @@ /** - * + * * JQuery QuickSearch - Hook up a form field to hide non-matching elements. * $Id: quicksearch.js 53 2009-01-07 02:52:03Z deveiant $ - * + * * Author: Michael Granger - * + * */ jQuery.fn.quicksearch = function( target, searchElems, options ) { // console.debug( "Quicksearch fn" ); @@ -17,7 +17,7 @@ jQuery.fn.quicksearch = function( target, searchElems, options ) { noSearchResultsIndicator: null }; if ( options ) $.extend( settings, options ); - + return jQuery(this).each( function() { // console.debug( "Creating a new quicksearch on %o for %o", this, searchElems ); new jQuery.quicksearch( this, searchElems, settings ); @@ -56,7 +56,7 @@ jQuery.quicksearch = function( searchBox, searchElems, settings ) { case 8: return true; break; - + // Only allow valid search characters default: return validQSChar( e.charCode ); @@ -88,7 +88,7 @@ jQuery.quicksearch = function( searchBox, searchElems, settings ) { var searchText = searchBox.value; var pat = new RegExp( searchText, "im" ); var shownCount = 0; - + if ( settings.noSearchResultsIndicator ) { $('#' + settings.noSearchResultsIndicator).hide(); } @@ -96,7 +96,7 @@ jQuery.quicksearch = function( searchBox, searchElems, settings ) { // All elements start out hidden $(searchElems).each( function(index) { var str = $(this).text(); - + if ( pat.test(str) ) { shownCount += 1; $(this).fadeIn(); diff --git a/lib/rdoc/generator/template/darkfish/rdoc.css b/lib/rdoc/generator/template/darkfish/rdoc.css index e836c66339..2af2a1782f 100644 --- a/lib/rdoc/generator/template/darkfish/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/rdoc.css @@ -1,9 +1,9 @@ /* * "Darkfish" Rdoc CSS * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $ - * + * * Author: Michael Granger - * + * */ /* Base Green is: #6C8C22 */ -- cgit v1.2.3