Add name of input field to JavaScript function.
[Sone.git] / src / main / resources / templates / knownSones.html
index bbdae37..3f55a58 100644 (file)
@@ -2,7 +2,7 @@
 
        <script language="javascript">
                $(document).ready(function() {
-                       registerInputTextareaSwap("#add-sone input[name=request-uri]", "Sone Request Key");
+                       registerInputTextareaSwap("#add-sone input[name=request-uri]", "Sone Request Key", "request-uri");
                })
        </script>
 
@@ -12,7 +12,7 @@
 
        <form id="add-sone" action="addSone.html" method="post">
                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
-               <input type="hidden" name="returnPage" value="<% request.url|html>" />
+               <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                <input type="text" name="request-uri" />
                <button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
        </form>