mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix user edit save
Remove connect logic
This commit is contained in:
parent
f3df5c9ed2
commit
5428c37200
1 changed files with 5 additions and 8 deletions
|
@ -32,13 +32,10 @@ define(["jQuery", "loading", "libraryMenu", "fnchecked"], function($, loading, l
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSaveComplete(page, user) {
|
function onSaveComplete(page, user) {
|
||||||
loading.hide(), (currentUser.ConnectUserName || "") == $("#txtConnectUserName", page).val() ? require(["toast"], function(toast) {
|
loading.hide();
|
||||||
toast(Globalize.translate("SettingsSaved"))
|
require(["toast"], function(toast) {
|
||||||
}) : require(["connectHelper"], function(connectHelper) {
|
toast(Globalize.translate("SettingsSaved"));
|
||||||
connectHelper.updateUserLink(ApiClient, user, $("#txtConnectUserName", page).val()).then(function() {
|
});
|
||||||
loadData(page)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveUser(user, page) {
|
function saveUser(user, page) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue