diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-05 10:35:30 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-05 10:35:30 +0000 |
commit | 23863ff75d3ec9205d5f365b98b6608e38a93749 (patch) | |
tree | 362b9fc870edb3820ef488a6618baf5669d3aa48 /lib/rdoc/generator/template/darkfish/js/darkfish.js | |
parent | 0d715e1b7540e1c876a4c53862355d5c43dd8683 (diff) |
* lib/rdoc/*, test/rdoc/*: Update rdoc/rdoc master(f191513)
https://github.com/rdoc/rdoc/blob/master/History.rdoc#423--2016--
https://github.com/rdoc/rdoc/blob/master/History.rdoc#422--2016-02-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/generator/template/darkfish/js/darkfish.js')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/js/darkfish.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/rdoc/generator/template/darkfish/js/darkfish.js b/lib/rdoc/generator/template/darkfish/js/darkfish.js index b789a65631..38f877ed40 100644 --- a/lib/rdoc/generator/template/darkfish/js/darkfish.js +++ b/lib/rdoc/generator/template/darkfish/js/darkfish.js @@ -59,7 +59,7 @@ function hookSearch() { var html = ''; // TODO add relative path to <script> per-page - html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title); + html += '<p class="search-match"><a href="' + index_rel_prefix + result.path + '">' + this.hlt(result.title); if (result.params) html += '<span class="params">' + result.params + '</span>'; html += '</a>'; @@ -121,9 +121,9 @@ function highlightClickTarget( event ) { }; }; -function loadAsync(path, success) { +function loadAsync(path, success, prefix) { $.ajax({ - url: rdoc_rel_prefix + path, + url: prefix + path, dataType: 'script', success: success, cache: true @@ -154,8 +154,8 @@ $(document).ready( function() { }); } - loadAsync('js/navigation.js', search_success_function('navigation_loaded')); - loadAsync('js/search.js', search_success_function('search_loaded')); - loadAsync('js/search_index.js', search_success_function('search_index_loaded')); - loadAsync('js/searcher.js', search_success_function('searcher_loaded')); + loadAsync('js/navigation.js', search_success_function('navigation_loaded'), rdoc_rel_prefix); + loadAsync('js/search.js', search_success_function('search_loaded'), rdoc_rel_prefix); + loadAsync('js/search_index.js', search_success_function('search_index_loaded'), index_rel_prefix); + loadAsync('js/searcher.js', search_success_function('searcher_loaded'), rdoc_rel_prefix); }); |