mirror of
https://github.com/danbulant/api_docs
synced 2026-07-06 11:30:37 +00:00
Update tocify to recache headers on image load, fixes #293
This commit is contained in:
parent
ae3d50277e
commit
ad3b2769fe
2 changed files with 16 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
//= require ../lib/_jquery_ui
|
||||
//= require ../lib/_jquery.tocify
|
||||
//= require ../lib/_imagesloaded.min
|
||||
(function (global) {
|
||||
'use strict';
|
||||
|
||||
|
|
@ -43,8 +44,12 @@
|
|||
}, 50);
|
||||
}
|
||||
|
||||
$(makeToc);
|
||||
$(animate);
|
||||
|
||||
$(function() {
|
||||
makeToc();
|
||||
animate();
|
||||
$('.content').imagesLoaded( function() {
|
||||
global.toc.calculateHeights();
|
||||
});
|
||||
});
|
||||
})(window);
|
||||
|
||||
|
|
|
|||
7
source/javascripts/lib/_imagesloaded.min.js
vendored
Normal file
7
source/javascripts/lib/_imagesloaded.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue