WCF.Dropdown.init();
WCF.System.PageNavigation.init('.pageNavigation');
WCF.Date.Picker.init();
- WCF.System.JumpToAnchor.execute();
WCF.System.MobileNavigation.init();
{event name='javascriptInit'}
var $windowHeight = $(window).height();
// handles menu height
- if (excludeMenuHeight) {
+ /*if (excludeMenuHeight) {
$elementOffset = Math.max($elementOffset - $('#topMenu').outerHeight(), 0);
- }
+ }*/
if ($elementOffset > $documentHeight - $windowHeight) {
$elementOffset = $documentHeight - $windowHeight;
}
};
-/**
- * Fixes scroll offset on page load.
- */
-WCF.System.JumpToAnchor = {
- execute: function() {
- if (window.location.hash) {
- var $element = $(window.location.hash);
- if ($element.length) {
- if ($.browser.chrome || $.browser.msie) {
- $element.addClass('userPanelJumpToAnchorFix');
-
- $(document).on('readystatechange', function() {
- if (document.readyState === 'complete') {
- // wait 100ms
- new WCF.PeriodicalExecuter(function(pe) {
- pe.stop();
-
- $element.removeClass('userPanelJumpToAnchorFix');
- }, 100);
- }
- });
- }
- else {
- window.scrollBy(0, -1 * $('.userPanel').outerHeight());
- }
- }
- }
- }
-};
-
/**
* System notification overlays.
*