Commit e5de1e59 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Prevent window resize function to be called twice on page load

parent 224ef953
......@@ -133,12 +133,14 @@
});
}
$(window).resize(function() {
if (isotopeFilter.find('li.current').length) {
isotopeFilter.find('li.current').trigger('click');
} else {
isotopeFilter.find('li:first').trigger('click');
}
$(window).on('load', function () {
$(window).resize(function () {
if (isotopeFilter.find('li.current').length) {
isotopeFilter.find('li.current').trigger('click');
} else {
isotopeFilter.find('li:first').trigger('click');
}
});
});
$('.vacancy-external').click(function() {
......
Supports Markdown
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