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) {
|
||||
loading.hide(), (currentUser.ConnectUserName || "") == $("#txtConnectUserName", page).val() ? require(["toast"], function(toast) {
|
||||
toast(Globalize.translate("SettingsSaved"))
|
||||
}) : require(["connectHelper"], function(connectHelper) {
|
||||
connectHelper.updateUserLink(ApiClient, user, $("#txtConnectUserName", page).val()).then(function() {
|
||||
loadData(page)
|
||||
})
|
||||
})
|
||||
loading.hide();
|
||||
require(["toast"], function(toast) {
|
||||
toast(Globalize.translate("SettingsSaved"));
|
||||
});
|
||||
}
|
||||
|
||||
function saveUser(user, page) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue