1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

improve new user error message

This commit is contained in:
Luke Pulverenti 2016-01-28 01:42:43 -05:00
parent a1b70df3cc
commit 4be5fe0d0e
2 changed files with 13 additions and 4 deletions

View file

@ -107,15 +107,24 @@
Dashboard.navigate("useredit.html?userId=" + user.Id);
});
}, function () {
}, function (response) {
if (response.status == 400) {
Dashboard.alert({
message: page.querySelector('.labelNewUserNameHelp').innerHTML
});
} else {
Dashboard.alert(Globalize.translate('DefaultErrorMessage'));
}
Dashboard.alert(Globalize.translate('DefaultErrorMessage'));
Dashboard.hideLoadingMsg();
});
}
function onSubmit() {
var page = $(this).parents('.page');
var page = $(this).parents('.page')[0];
Dashboard.showLoadingMsg();