mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9494 from tk0miya/9456_revert_9129
Fix #9456: html search: html_copy_source can't control the search summaries
This commit is contained in:
commit
4dc45f0a3d
1
CHANGES
1
CHANGES
@ -24,6 +24,7 @@ Bugs fixed
|
|||||||
* #9490: autodoc: Some objects under ``typing`` module are not displayed well
|
* #9490: autodoc: Some objects under ``typing`` module are not displayed well
|
||||||
with the HEAD of 3.10
|
with the HEAD of 3.10
|
||||||
* #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
|
* #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
|
||||||
|
* #9456: html search: html_copy_source can't control the search summaries
|
||||||
* #9435: linkcheck: Failed to check anchors in github.com
|
* #9435: linkcheck: Failed to check anchors in github.com
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
|
@ -276,7 +276,7 @@ var Search = {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
displayNextItem();
|
displayNextItem();
|
||||||
}, 5);
|
}, 5);
|
||||||
} else {
|
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
|
||||||
$.ajax({url: requestUrl,
|
$.ajax({url: requestUrl,
|
||||||
dataType: "text",
|
dataType: "text",
|
||||||
complete: function(jqxhr, textstatus) {
|
complete: function(jqxhr, textstatus) {
|
||||||
@ -289,6 +289,12 @@ var Search = {
|
|||||||
displayNextItem();
|
displayNextItem();
|
||||||
}, 5);
|
}, 5);
|
||||||
}});
|
}});
|
||||||
|
} else {
|
||||||
|
// no source available, just display title
|
||||||
|
Search.output.append(listItem);
|
||||||
|
setTimeout(function() {
|
||||||
|
displayNextItem();
|
||||||
|
}, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// search finished, update title and status message
|
// search finished, update title and status message
|
||||||
|
Loading…
Reference in New Issue
Block a user