mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-12-22 16:46:02 +00:00
Attempt to fix search.json file not found errors
- Add BASE_URL variable to scripts.html _include to create an absolute URL in search.js for search.json
This commit is contained in:
parent
3c5d70ea00
commit
fcde4d999f
3 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
<script type="text/javascript">
|
||||
var BASE_URL = '{{ site.url }}';
|
||||
</script>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
||||
<script src="{{ site.url }}/assets/js/scripts.min.js"></script>
|
||||
|
|
|
@ -96,7 +96,7 @@ function toggleLoadingClass() {
|
|||
* @return null
|
||||
*/
|
||||
function getSearchResults(callbackFunction) {
|
||||
$.get(jsonFeedUrl, callbackFunction, 'json');
|
||||
$.get(BASE_URL + jsonFeedUrl, callbackFunction, 'json');
|
||||
}
|
||||
|
||||
|
||||
|
|
2
assets/js/scripts.min.js
vendored
2
assets/js/scripts.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue