branch: wip-js+css
commit 213d6e92afe03dbb5466d0494ee032a41916696c
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Mon Feb 12 12:32:08 2024 +0100
cuirass.js: Add missing semicolons.
* src/static/js/cuirass.js: Add semicolon wherever its missing.
---
src/static/js/cuirass.js | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/static/js/cuirass.js b/src/static/js/cuirass.js
index f5cdd1b..b639689 100644
--- a/src/static/js/cuirass.js
+++ b/src/static/js/cuirass.js
@@ -201,7 +201,7 @@ ready(() => {
div.html('')
.style('left', '0px')
.style('top', '0px');
- })
+ });
enableLoadButton();
}
@@ -263,18 +263,18 @@ ready(() => {
}
(function () {
- 'use strict'
- var forms = document.querySelectorAll('.needs-validation')
+ 'use strict';
+ var forms = document.querySelectorAll('.needs-validation');
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
- event.preventDefault()
- event.stopPropagation()
+ event.preventDefault();
+ event.stopPropagation();
}
- form.classList.add('was-validated')
- }, false)
- })
+ form.classList.add('was-validated');
+ }, false);
+ });
})();
const select_choices = new Choices($('.build-param-select')[0], {