Skip to content

Commit

Permalink
Put jquery.accordion back in place.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Jan 31, 2018
1 parent 476d531 commit 8794d79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions web/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
'jquery': '//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min',
'jquery.pjax': '//cdnjs.cloudflare.com/ajax/libs/jquery.pjax/2.0.1/jquery.pjax.min',
'jquery.typeahead': '//cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/1.2.1/typeahead.jquery.min',
'jquery.accordion': '//cdn.rawgit.com/vctrfrnndz/jquery-accordion/045aeac/js/jquery.accordion',
'bloodhound': '//cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/1.2.1/bloodhound.min',
'highlight': '//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min',
'page': '//cdnjs.cloudflare.com/ajax/libs/page.js/1.7.1/page.min'
Expand Down
6 changes: 2 additions & 4 deletions web/script/controllers/docs.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
define(['./base/pjax',
'class',
'highlight',
'jquery'],
function(PjaxController, clazz, hljs, $) {
'jquery', 'jquery.accordion'],
function(PjaxController, clazz, hljs, $, __$_accordion) {

// static
var _submenuOffset;
Expand Down Expand Up @@ -53,11 +53,9 @@ function(PjaxController, clazz, hljs, $) {
}

// accordion
/*
$('.accordion').accordion({
"transitionSpeed": 400
});
*/

hljs.configure({ classPrefix: '' });
$('pre code').each(function(i, block) {
Expand Down
4 changes: 3 additions & 1 deletion web/script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require.config({
'jquery': '//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min',
'jquery.pjax': '//cdnjs.cloudflare.com/ajax/libs/jquery.pjax/2.0.1/jquery.pjax.min',
'jquery.typeahead': '//cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/1.2.1/typeahead.jquery.min',
'jquery.accordion': '//cdn.rawgit.com/vctrfrnndz/jquery-accordion/045aeac/js/jquery.accordion',
'bloodhound': '//cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/1.2.1/bloodhound.min',
'highlight': '//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min',
'page': '//cdnjs.cloudflare.com/ajax/libs/page.js/1.7.1/page.min'
Expand All @@ -12,7 +13,8 @@ require.config({
{ name: 'events', location: '../node_modules/events' }
],
shim: {
'jquery.pjax': ['jquery']
'jquery.pjax': ['jquery'],
'jquery.accordion': ['jquery']
}
});

Expand Down

0 comments on commit 8794d79

Please sign in to comment.