projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add default texts for input fields with AJAX.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
knownSones.html
diff --git
a/src/main/resources/templates/knownSones.html
b/src/main/resources/templates/knownSones.html
index
26a98ac
..
862c01e
100644
(file)
--- a/
src/main/resources/templates/knownSones.html
+++ b/
src/main/resources/templates/knownSones.html
@@
-1,12
+1,19
@@
<%include include/head.html>
<%include include/head.html>
+ <script language="javascript">
+ $(document).ready(function() {
+ registerInputTextareaSwap("#add-sone input[name=request-uri]", "WebInterface.DefaultText.SoneRequestURI", "request-uri", false);
+ })
+ </script>
+
<h1><%= Page.Index.AddSone.Title|l10n|html></h1>
<div><%= Page.Index.AddSone.Description|l10n|html></div>
<h1><%= Page.Index.AddSone.Title|l10n|html></h1>
<div><%= Page.Index.AddSone.Description|l10n|html></div>
- <form action="addSone.html" method="post">
+ <form
id="add-sone"
action="addSone.html" method="post">
<input type="hidden" name="formPassword" value="<% formPassword|html>" />
<input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <input id="addsone" type="text" name="request-uri" />
+ <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>
<button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
</form>