mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Use === in JS
This commit is contained in:
parent
bad5fe3c22
commit
afc367cfb8
@ -39,16 +39,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var showAddButton = function () {
|
var showAddButton = function () {
|
||||||
return maxForms.length == 0 || // For Django versions pre 1.2
|
return maxForms.length === 0 || // For Django versions pre 1.2
|
||||||
(maxForms.val() == '' || (maxForms.val() - totalForms.val() > 0))
|
(maxForms.val() === '' || (maxForms.val() - totalForms.val() > 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether delete link(s) can be displayed - when total forms > min forms
|
* Indicates whether delete link(s) can be displayed - when total forms > min forms
|
||||||
*/
|
*/
|
||||||
var showDeleteLinks = function () {
|
var showDeleteLinks = function () {
|
||||||
return minForms.length == 0 || // For Django versions pre 1.7
|
return minForms.length === 0 || // For Django versions pre 1.7
|
||||||
(minForms.val() == '' || (totalForms.val() - minForms.val() > 0))
|
(minForms.val() === '' || (totalForms.val() - minForms.val() > 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
var insertDeleteLink = function (row) {
|
var insertDeleteLink = function (row) {
|
||||||
|
@ -38,8 +38,8 @@ function afterKonami () {
|
|||||||
|
|
||||||
// Register custom event
|
// Register custom event
|
||||||
document.addEventListener('keydown', (e) => {
|
document.addEventListener('keydown', (e) => {
|
||||||
cursor = (e.keyCode == KONAMI_CODE[cursor]) ? cursor + 1 : 0
|
cursor = (e.keyCode === KONAMI_CODE[cursor]) ? cursor + 1 : 0
|
||||||
if (cursor == KONAMI_CODE.length) {
|
if (cursor === KONAMI_CODE.length) {
|
||||||
afterKonami()
|
afterKonami()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user