Allow to delete the email address in user management

This commit is contained in:
Morris Jobke 2016-02-05 10:27:18 +01:00
parent 342c2aac98
commit f0752d7ba1
1 changed files with 14 additions and 18 deletions

View File

@ -732,7 +732,6 @@ $(document).ready(function () {
.focus()
.keypress(function (event) {
if (event.keyCode === 13) {
if ($(this).val().length > 0) {
$tr.data('mailAddress', $input.val());
$input.blur();
$.ajax({
@ -747,9 +746,6 @@ $(document).ready(function () {
$tr.data('mailAddress', mailAddress);
$tr.children('.mailAddress').children('span').text(mailAddress);
});
} else {
$input.blur();
}
}
})
.blur(function () {