Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #17698: Change of email address for survey administrator …
…confusing (#2152) Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
- Loading branch information
1 parent
76e9c57
commit 8a093fd
Showing
3 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
$(document).on('click', '#selector__showChangePassword', function(e){ | ||
e.preventDefault(); | ||
$('#newpasswordshown').val('1'); | ||
showHiddenRow('.selector__oldpassword-row'); | ||
showHiddenRow('.selector__password-row'); | ||
$(this).closest('div').remove(); | ||
}); | ||
|
||
$(document).on('click', '#selector__showChangeEmail', function(e){ | ||
e.preventDefault(); | ||
$('#newemailshown').val('1'); | ||
showHiddenRow('.selector__oldpassword-row'); | ||
showHiddenRow('.selector__email-row'); | ||
$(this).closest('div').remove(); | ||
}); | ||
|
||
function showHiddenRow(selector) { | ||
$(selector).removeClass('hidden').find('input').each( | ||
function(i,item){ | ||
$(item).prop('disabled', false); | ||
} | ||
); | ||
} |