Remove dead code
This commit is contained in:
parent
fb2fe462df
commit
335dc4eff4
1 changed files with 0 additions and 30 deletions
|
@ -1,30 +0,0 @@
|
||||||
define(["jQuery", "loading", "libraryMenu"], function ($, loading, libraryMenu) {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
function loadUser(page, user) {
|
|
||||||
libraryMenu.setTitle(user.Name);
|
|
||||||
|
|
||||||
if ("Guest" == user.ConnectLinkType) {
|
|
||||||
$(".connectMessage", page).show();
|
|
||||||
} else {
|
|
||||||
$(".connectMessage", page).hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
loading.hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
function loadData(page) {
|
|
||||||
loading.show();
|
|
||||||
var userId = getParameterByName("userId");
|
|
||||||
ApiClient.getUser(userId).then(function (user) {
|
|
||||||
loadUser(page, user);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).on("pageinit", "#userPasswordPage", function () {
|
|
||||||
$(".adminUpdatePasswordForm").off("submit", UpdatePasswordPage.onSubmit).on("submit", UpdatePasswordPage.onSubmit);
|
|
||||||
$(".adminLocalAccessForm").off("submit", UpdatePasswordPage.onLocalAccessSubmit).on("submit", UpdatePasswordPage.onLocalAccessSubmit);
|
|
||||||
}).on("pagebeforeshow", "#userPasswordPage", function () {
|
|
||||||
loadData(this);
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Add table
Add a link
Reference in a new issue