mirror of https://github.com/ColorlibHQ/AdminLTE
Fix ESLint errors (#2763)
* fix dist/js/demo.js eslint error * fix Layout.js eslint error * remove unnecessary semicolon * remove unexpected token * add missing radix for parseInt in Layout.jspull/2764/head
parent
023ede7ded
commit
0641a8442d
|
@ -131,7 +131,7 @@ const Layout = ($ => {
|
||||||
|
|
||||||
if (this._config.loginRegisterAutoHeight === true) {
|
if (this._config.loginRegisterAutoHeight === true) {
|
||||||
this.fixLoginRegisterHeight()
|
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)
|
setInterval(this.fixLoginRegisterHeight, this._config.loginRegisterAutoHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -366,8 +366,9 @@
|
||||||
})
|
})
|
||||||
$container.append($logo_variants)
|
$container.append($logo_variants)
|
||||||
var $clear_btn = $('<a />', {
|
var $clear_btn = $('<a />', {
|
||||||
href: 'javascript:void(0)'
|
href: '#'
|
||||||
}).text('clear').on('click', function () {
|
}).text('clear').on('click', function (e) {
|
||||||
|
e.preventDefault()
|
||||||
var $logo = $('.brand-link')
|
var $logo = $('.brand-link')
|
||||||
logo_skins.forEach(function (skin) {
|
logo_skins.forEach(function (skin) {
|
||||||
$logo.removeClass(skin)
|
$logo.removeClass(skin)
|
||||||
|
|
Loading…
Reference in New Issue