mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add Link Keys form to supporterkey.html
This commit is contained in:
parent
5636ec57bc
commit
d4d5d97322
2 changed files with 69 additions and 0 deletions
|
@ -55,6 +55,38 @@
|
|||
return false;
|
||||
},
|
||||
|
||||
linkSupporterKeys: function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
var page = $.mobile.activePage;
|
||||
|
||||
var email = $('#txtNewEmail', page).val();
|
||||
var newkey = $('#txtNewKey', page).val();
|
||||
var oldkey = $('#txtOldKey', page).val();
|
||||
|
||||
var info = {
|
||||
email: email,
|
||||
newkey: newkey,
|
||||
oldkey: oldkey
|
||||
};
|
||||
|
||||
var url = "http://mb3admin.com/admin/service/supporter/linkKeys";
|
||||
console.log(url);
|
||||
$.post(url, info).done(function (res) {
|
||||
var result = JSON.parse(res);
|
||||
Dashboard.hideLoadingMsg();
|
||||
if (result.Success) {
|
||||
Dashboard.alert("Keys Linked.");
|
||||
} else {
|
||||
Dashboard.showError(result.ErrorMessage);
|
||||
}
|
||||
console.log(result);
|
||||
|
||||
});
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
retrieveSupporterKey: function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue