diff --git a/app/sovran_systemsos_web/static/js/features.js b/app/sovran_systemsos_web/static/js/features.js index 924db20..afe6547 100644 --- a/app/sovran_systemsos_web/static/js/features.js +++ b/app/sovran_systemsos_web/static/js/features.js @@ -222,13 +222,13 @@ function openPortRequirementsModal(featureName, ports, onContinue) { var continueBtn = onContinue ? '' : ''; - var rows = ports.map(function(p) { - return '
Forward each port below to this machine\'s internal IP: ' + escHtml(internalIp) + '
Forward each port below to this machine's internal LAN IP in your router's port forwarding settings.
"; @@ -251,15 +251,15 @@ function openPortRequirementsModal(featureName, ports, onContinue) { continueBtn + ''; - document.getElementById("port-req-dismiss-btn").addEventListener("click", function() { + document.getElementById("port-req-dismiss-btn").onclick = function() { closePortRequirementsModal(); - }); + }; if (onContinue) { - document.getElementById("port-req-continue-btn").addEventListener("click", function() { + document.getElementById("port-req-continue-btn").onclick = function() { closePortRequirementsModal(); onContinue(); - }); + }; } }