[Python-checkins] r65546 - in doctools/branches/0.4.x/sphinx: static/searchtools.js templates/search.html
georg.brandl
python-checkins at python.org
Tue Aug 5 11:55:20 CEST 2008
Author: georg.brandl
Date: Tue Aug 5 11:55:20 2008
New Revision: 65546
Log:
Show an indication while downloading the search index.
Modified:
doctools/branches/0.4.x/sphinx/static/searchtools.js
doctools/branches/0.4.x/sphinx/templates/search.html
Modified: doctools/branches/0.4.x/sphinx/static/searchtools.js
==============================================================================
--- doctools/branches/0.4.x/sphinx/static/searchtools.js (original)
+++ doctools/branches/0.4.x/sphinx/static/searchtools.js Tue Aug 5 11:55:20 2008
@@ -243,6 +243,7 @@
var dots = $('<span></span>').appendTo(title);
var status = $('<p style="display: none"></p>').appendTo(out);
var output = $('<ul class="search"/>').appendTo(out);
+ $('#search-progress').text('Getting search index...')
// spawn a background runner for updating the dots
// until the search has finished
@@ -300,6 +301,8 @@
var fileMap = {};
var files = null;
+ $('#search-progress').empty()
+
// perform the search on the required words
for (var i = 0; i < searchwords.length; i++) {
var word = searchwords[i];
Modified: doctools/branches/0.4.x/sphinx/templates/search.html
==============================================================================
--- doctools/branches/0.4.x/sphinx/templates/search.html (original)
+++ doctools/branches/0.4.x/sphinx/templates/search.html Tue Aug 5 11:55:20 2008
@@ -14,6 +14,7 @@
<form action="" method="get">
<input type="text" name="q" value="" />
<input type="submit" value="search" />
+ <span id="search-progress" style="padding-left: 10px"></span>
</form>
{% if search_performed %}
<h2>Search Results</h2>
More information about the Python-checkins
mailing list