mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
#435 Started the wizard
This commit is contained in:
parent
bd3df2c1b8
commit
1f4ece8b5b
14 changed files with 231 additions and 26 deletions
|
@ -3,9 +3,39 @@
|
|||
// Step 1
|
||||
$('#firstNext')
|
||||
.click(function () {
|
||||
loadArea("plexAuthArea");
|
||||
loadArea("mediaApplicationChoice");
|
||||
});
|
||||
|
||||
|
||||
// Plex click
|
||||
$('#contentBody')
|
||||
.on("click", "#plexImg", function(e) {
|
||||
e.preventDefault();
|
||||
return loadArea("plexAuthArea");
|
||||
});
|
||||
|
||||
|
||||
$('#contentBody')
|
||||
.on("click", "#embyImg", function (e) {
|
||||
e.preventDefault();
|
||||
return loadArea("embyApiKey");
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#contentBody').on('click', '#embyApiKeySave', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var $form = $("#embyAuthForm");
|
||||
$.post($form.prop("action"), $form.serialize(), function (response) {
|
||||
if (response.result === true) {
|
||||
loadArea("authArea");
|
||||
} else {
|
||||
generateNotify(response.message, "warning");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Step 2 - Get the auth token
|
||||
$('#contentBody').on('click', '#requestToken', function (e) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue