Revision 594d83ef cloudcms/static/cloudcms/js/common.js
b/cloudcms/static/cloudcms/js/common.js | ||
---|---|---|
327 | 327 |
}); |
328 | 328 |
|
329 | 329 |
// fix for recaptcha fields |
330 |
$('#okeanos_recaptcha').parents('.form-row').find('.extra-img').hide();
|
|
330 |
$('#okeanos_recaptcha').parents('.form-row').find('.extra-img').hide(); |
|
331 | 331 |
|
332 |
fixEl = $('.details .lt'); |
|
333 |
window.fixEloffsetTop = fixEl.offset().top; |
|
334 |
|
|
332 | 335 |
}); |
333 | 336 |
|
334 | 337 |
$(window).resize(function() { |
... | ... | |
336 | 339 |
setContainerMinHeight('.container .wrapper'); |
337 | 340 |
|
338 | 341 |
|
342 |
}); |
|
343 |
|
|
344 |
|
|
345 |
/* js for fixed faq/userguide side nav */ |
|
346 |
$(window).scroll(function () { |
|
347 |
|
|
348 |
if ( $('.details .lt').height() < $('.details .rt').height() ) { |
|
349 |
if ($(window).scrollTop() > window.fixEloffsetTop){ |
|
350 |
fixEl.addClass('fixed'); |
|
351 |
} else { |
|
352 |
fixEl.removeClass('fixed'); |
|
353 |
} |
|
354 |
} |
|
355 |
|
|
356 |
|
|
357 |
|
|
339 | 358 |
}); |
Also available in: Unified diff