Skip to content

Commit

Permalink
Merge pull request #14 from jmcarp/update-glossary
Browse files Browse the repository at this point in the history
Handle update in glossary API.
  • Loading branch information
jmcarp committed Aug 21, 2015
2 parents 1f1ee06 + 88fd436 commit d4f5ef5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fec/fec/static/js/fec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@

var $ = require('jquery');

var terms = require('fec-style/js/terms');
var glossary = require('fec-style/js/glossary');
var accordion = require('fec-style/js/accordion');

// // Hack: Append jQuery to `window` for use by legacy libraries
// window.$ = window.jQuery = $;
// Hack: Append jQuery to `window` for use by legacy libraries
window.$ = window.jQuery = $;

var SLT_ACCORDION = '.js-accordion';

$(document).ready(function() {
// Initialize glossary
new glossary.Glossary('#glossary', '#glossary-toggle');
new glossary.Glossary(terms, {body: '#glossary', toggle: '#glossary-toggle'});

// Initialize accordions
$(SLT_ACCORDION).each(function() {
Expand Down

0 comments on commit d4f5ef5

Please sign in to comment.