From 3b62c5d6865cd2c66e9732727bd0532fe6788b9b Mon Sep 17 00:00:00 2001 From: Jason House Date: Sun, 27 Sep 2020 17:29:13 +0900 Subject: [PATCH] Adding more modal controls --- .../static/js/modules/plex-configuration.js | 11 ++++++----- .../resources/templates/configuration.html | 19 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/GapsWeb/src/main/resources/static/js/modules/plex-configuration.js b/GapsWeb/src/main/resources/static/js/modules/plex-configuration.js index c7b56225..5498c5be 100644 --- a/GapsWeb/src/main/resources/static/js/modules/plex-configuration.js +++ b/GapsWeb/src/main/resources/static/js/modules/plex-configuration.js @@ -9,16 +9,17 @@ * */ -export function openPlexLibraryConfigurationModel(machineIdentifier, key) { +export function openPlexLibraryConfigurationModel(title, machineIdentifier, key) { const obj = { + 'title':title, 'machineIdentifier': machineIdentifier, 'key': key } - const plexLibraryButtonConfiguration = $("#plexLibraryButtonConfiguration").html(); - const theTemplate = Handlebars.compile(plexLibraryButtonConfiguration); + const plexLibraryModalTemplate = $("#plexLibraryModalTemplate").html(); + const theTemplate = Handlebars.compile(plexLibraryModalTemplate); const theCompiledHtml = theTemplate(obj); - const buttonHolder = document.getElementById('buttonHolder'); - buttonHolder.innerHTML = theCompiledHtml; + const plexLibraryConfigurationModal = document.getElementById('plexLibraryConfigurationModal'); + plexLibraryConfigurationModal.innerHTML = theCompiledHtml; $('#plexLibraryConfigurationModal').modal('show'); } diff --git a/GapsWeb/src/main/resources/templates/configuration.html b/GapsWeb/src/main/resources/templates/configuration.html index 6dfda7f5..ba996997 100755 --- a/GapsWeb/src/main/resources/templates/configuration.html +++ b/GapsWeb/src/main/resources/templates/configuration.html @@ -416,10 +416,13 @@

Success!

+ +