diff options
author | Simon Rettberg | 2018-04-10 12:58:39 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-10 12:58:51 +0200 |
commit | 0610a9adf881d594447ba7076839310602081f25 (patch) | |
tree | 56ddbc7e3a3d3852bb5f83db88b25c0e086f7b0d /modules-available/adduser | |
parent | [adduser] JS checks while editing user; second save button below role list (diff) | |
download | slx-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.html | 3 |
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) { |