summaryrefslogtreecommitdiffstats
path: root/modules-available/adduser
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-10 12:58:39 +0200
committerSimon Rettberg2018-04-10 12:58:51 +0200
commit0610a9adf881d594447ba7076839310602081f25 (patch)
tree56ddbc7e3a3d3852bb5f83db88b25c0e086f7b0d /modules-available/adduser
parent[adduser] JS checks while editing user; second save button below role list (diff)
downloadslx-admin-0610a9adf881d594447ba7076839310602081f25.tar.gz
slx-admin-0610a9adf881d594447ba7076839310602081f25.tar.xz
slx-admin-0610a9adf881d594447ba7076839310602081f25.zip
[adduser] Fix JS checks on add page
Diffstat (limited to 'modules-available/adduser')
-rw-r--r--modules-available/adduser/templates/js-add-edit.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/adduser/templates/js-add-edit.html b/modules-available/adduser/templates/js-add-edit.html
index 95454c22..db8d435a 100644
--- a/modules-available/adduser/templates/js-add-edit.html
+++ b/modules-available/adduser/templates/js-add-edit.html
@@ -6,6 +6,9 @@ document.addEventListener('DOMContentLoaded', function() {
var $fullname = $('#fullname');
var $msg = $('#add-msg');
var $btn = $('.save-btn');
+ if (typeof SLX_EDITUSER === 'undefined') {
+ SLX_EDITUSER = false;
+ }
var ev = function() {
var msg = '';
if ($login.val().length < 2) {