Bug 960730 - Rewrite inline script / style in devtools/framework/connect/connect.xhtml. r=bgrins

This commit is contained in:
Kay Plößer 2014-01-22 10:33:58 -05:00
parent 2a291799d7
commit b2c8067146
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@ window.addEventListener("DOMContentLoaded", function onDOMReady() {
document.getElementById("port").value = port;
}
let form = document.querySelector("#connection-form form");
form.addEventListener("submit", function() {
window.submit();
});
}, true);
/**

View File

@ -19,7 +19,7 @@
<body>
<h1>&header;</h1>
<section id="connection-form">
<form validate="validate" onsubmit="window.submit()" action="#">
<form validate="validate" action="#">
<label>
<span>&host;</span>
<input required="required" class="devtools-textinput" id="host" type="text"></input>