mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3155: Fix JavaScript for html_sourcelink_suffix fails with IE and Opera
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -12,6 +12,7 @@ Bugs fixed
|
||||
|
||||
* #3069: Even if ``'babel'`` key is set to empty string, LaTeX output contains
|
||||
one ``\addto\captions...``
|
||||
* #3155: Fix JavaScript for `html_sourcelink_suffix` fails with IE and Opera
|
||||
|
||||
Release 1.5 beta1 (released Nov 6, 2016)
|
||||
========================================
|
||||
|
||||
@@ -261,7 +261,7 @@ var Search = {
|
||||
});
|
||||
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
|
||||
var suffix = DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX;
|
||||
$.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + '_sources/' + item[5] + (item[5].endsWith(suffix) ? '' : suffix),
|
||||
$.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + '_sources/' + item[5] + (item[5].slice(-suffix.length) === suffix ? '' : suffix),
|
||||
dataType: "text",
|
||||
complete: function(jqxhr, textstatus) {
|
||||
var data = jqxhr.responseText;
|
||||
|
||||
Reference in New Issue
Block a user