summaryrefslogtreecommitdiff
path: root/lib/rdoc/generator/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-02 04:40:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-02 04:40:47 +0000
commit2553a96f9eb29ca334d713aa1830f5cce3045f86 (patch)
tree9dacfb2860480748b03d7b7561a52cb1a5da868e /lib/rdoc/generator/template
parent0c216c32dc9e5ce2554b516e821c4e94c2f05316 (diff)
* {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
Diffstat (limited to 'lib/rdoc/generator/template')
-rw-r--r--lib/rdoc/generator/template/darkfish/js/darkfish.js10
-rw-r--r--lib/rdoc/generator/template/darkfish/js/quicksearch.js14
-rw-r--r--lib/rdoc/generator/template/darkfish/rdoc.css4
3 files changed, 14 insertions, 14 deletions
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 <mgranger@laika.com>
- *
+ *
*/
/* 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 <mgranger@laika.com>
- *
+ *
*/
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 <ged@FaerieMUD.org>
- *
+ *
*/
/* Base Green is: #6C8C22 */