summaryrefslogtreecommitdiff
path: root/p/scripts/install.js
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-08-29 19:52:52 +0200
committerGravatar GitHub <noreply@github.com> 2016-08-29 19:52:52 +0200
commit17c8c039df675b3b0f8d88d14f7316a240eabe76 (patch)
tree3dd3da3e8f21b5e82905f756098b86e0d15b3935 /p/scripts/install.js
parent92d4ad32c9eb165dee6dc6d4b8cf510428dde9ec (diff)
parentaea7cd78367ef867cdac7082ac1e9f61c4de7e19 (diff)
Merge pull request #1233 from FreshRSS/dev1.5.0
Release 1.5.0
Diffstat (limited to 'p/scripts/install.js')
-rw-r--r--p/scripts/install.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/p/scripts/install.js b/p/scripts/install.js
index 9a49e6031..d7f4e7b02 100644
--- a/p/scripts/install.js
+++ b/p/scripts/install.js
@@ -1,4 +1,5 @@
"use strict";
+/* jshint globalstrict: true */
function show_password() {
var button = this;
@@ -24,18 +25,12 @@ function auth_type_change() {
var auth_type = document.getElementById('auth_type');
if (auth_type) {
var auth_value = auth_type.value,
- password_input = document.getElementById('passwordPlain'),
- mail_input = document.getElementById('mail_login');
+ password_input = document.getElementById('passwordPlain');
if (auth_value === 'form') {
password_input.required = true;
- mail_input.required = false;
- } else if (auth_value === 'persona') {
- password_input.required = false;
- mail_input.required = true;
} else {
password_input.required = false;
- mail_input.required = false;
}
}
}