Commit 94749a45 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Trigger load of lazy images when opening sidebar, or clicking 'more participants'

parent 9cd87f6f
...@@ -70,7 +70,10 @@ const PARTICIPANTS_ROW_COUNT = 7; ...@@ -70,7 +70,10 @@ const PARTICIPANTS_ROW_COUNT = 7;
} else { } else {
$(this).text(originalText); $(this).text(originalText);
} }
return $(".js-participants-hidden").toggle();
$(".js-participants-hidden").toggle();
gl.lazyLoader.loadCheck();
}; };
return IssuableContext; return IssuableContext;
......
...@@ -45,8 +45,10 @@ import Cookies from 'js-cookie'; ...@@ -45,8 +45,10 @@ import Cookies from 'js-cookie';
$('.page-with-sidebar').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded'); $('.page-with-sidebar').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded');
} }
if (!triggered) { if (!triggered) {
return Cookies.set("collapsed_gutter", $('.right-sidebar').hasClass('right-sidebar-collapsed')); Cookies.set("collapsed_gutter", $('.right-sidebar').hasClass('right-sidebar-collapsed'));
} }
console.log('loadCheck')
gl.lazyLoader.loadCheck();
}); });
return $(document).off('click', '.js-issuable-todo').on('click', '.js-issuable-todo', this.toggleTodo); return $(document).off('click', '.js-issuable-todo').on('click', '.js-issuable-todo', this.toggleTodo);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment