Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Commit

Permalink
Fix base path in typeahead URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarp committed Sep 25, 2015
1 parent a942329 commit ac7ea87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions static/js/init.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

/* global require, window, document */
/* global require, window, document, BASE_PATH */

var KEYCODE_SLASH = 191;

Expand Down Expand Up @@ -82,7 +82,11 @@ $(document).ready(function() {
new glossary.Glossary(terms, {body: '#glossary'});

// Initialize typeaheads
new typeahead.Typeahead('.js-search-input', $('.js-search-type').val());
new typeahead.Typeahead(
'.js-search-input',
$('.js-search-type').val(),
BASE_PATH
);

// Focus search on "/"
$(document.body).on('keyup', function(e) {
Expand Down

0 comments on commit ac7ea87

Please sign in to comment.