Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Equality operator may cause type coersion

Peter van der Doesbcd7af4d25c9
diff --git a/wger/core/templates/mobile/template.html b/wger/core/templates/mobile/template.html
index a0f8290d2..93d8037d3 100644
--- a/wger/core/templates/mobile/template.html
+++ b/wger/core/templates/mobile/template.html
@@ -81,7 +81,7 @@
$('.row-offcanvas').toggleClass('active')
});
- if (typeof wgerCustomPageInit != "undefined")
+ if (typeof wgerCustomPageInit !== "undefined")
{
wgerCustomPageInit();
}
diff --git a/wger/core/templates/template.html b/wger/core/templates/template.html
index 6642681e2..9b3774a43 100644
--- a/wger/core/templates/template.html
+++ b/wger/core/templates/template.html
@@ -76,7 +76,7 @@
<script>
$(document).ready(function() {
- if (typeof wgerCustomPageInit != "undefined")
+ if (typeof wgerCustomPageInit !== "undefined")
{
wgerCustomPageInit();
}
diff --git a/wger/manager/templates/workout/timer.html b/wger/manager/templates/workout/timer.html
index 5b8a06626..d04b8a804 100644
--- a/wger/manager/templates/workout/timer.html
+++ b/wger/manager/templates/workout/timer.html
@@ -57,7 +57,7 @@ var counter = {
}
// Update the HTML element with the current remaining time once per second
- if (this.seconds != Math.ceil(this.milliseconds / 1000)) {
+ if (this.seconds !== Math.ceil(this.milliseconds / 1000)) {
$('#counter-' + this.step_id).html(this.end - this.seconds);
}