Browse Source

Fixed rendering of documentation widgets if no active item on page

pull/33/merge
Kurtis Seebaldt and Nick Street 13 years ago
parent
commit
7202e8be26
  1. 4
      js/application.js

4
js/application.js

@ -85,6 +85,8 @@ $(function(){ @@ -85,6 +85,8 @@ $(function(){
var moveItemSlider = function () {
var activeItem = $(".js-item-slider--wrapper .js-item.js-active");
if (activeItem.empty()) return;
var activeItemPosition = activeItem.position();
var activeItemOffset = activeItemPosition.left;
var activeItemWidth = activeItem.outerWidth();
@ -105,6 +107,8 @@ $(function(){ @@ -105,6 +107,8 @@ $(function(){
$(this).siblings().removeClass("js-active");
moveItemSlider();
});
new Spring.ProjectDocumentationWidget();
});

Loading…
Cancel
Save