diff --git a/build/js/Layout.js b/build/js/Layout.js index 83fc64a29..109f7cc5d 100644 --- a/build/js/Layout.js +++ b/build/js/Layout.js @@ -131,7 +131,7 @@ const Layout = ($ => { if (this._config.loginRegisterAutoHeight === true) { this.fixLoginRegisterHeight() - } else if (Number.isInteger(this._config.loginRegisterAutoHeight)) { + } else if (this._config.loginRegisterAutoHeight === parseInt(this._config.loginRegisterAutoHeight, 10)) { setInterval(this.fixLoginRegisterHeight, this._config.loginRegisterAutoHeight) } diff --git a/dist/js/demo.js b/dist/js/demo.js index 98ca29971..65fc83fcf 100644 --- a/dist/js/demo.js +++ b/dist/js/demo.js @@ -366,8 +366,9 @@ }) $container.append($logo_variants) var $clear_btn = $('', { - href: 'javascript:void(0)' - }).text('clear').on('click', function () { + href: '#' + }).text('clear').on('click', function (e) { + e.preventDefault() var $logo = $('.brand-link') logo_skins.forEach(function (skin) { $logo.removeClass(skin)