#435 Started the wizard

This commit is contained in:
Jamie.Rees 2017-01-30 08:55:13 +00:00
parent bd3df2c1b8
commit 1f4ece8b5b
14 changed files with 231 additions and 26 deletions

View file

@ -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();