summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2008-01-17 22:45:27 -0500
committerLuke Macken <lmacken@redhat.com>2008-01-17 22:45:27 -0500
commit76261e87bfd054129ed53d8a3124e75e90b4ec10 (patch)
tree60c82c5352aafbf836f28c9144304050c8e645b8 /funcweb
parent061db7282409b779290eddce8e969b8544642a58 (diff)
downloadthird_party-func-76261e87bfd054129ed53d8a3124e75e90b4ec10.tar.gz
third_party-func-76261e87bfd054129ed53d8a3124e75e90b4ec10.tar.xz
third_party-func-76261e87bfd054129ed53d8a3124e75e90b4ec10.zip
Give our method arguments text field focus when it appears.
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/templates/method.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/funcweb/funcweb/templates/method.html b/funcweb/funcweb/templates/method.html
index daa0578..dc228c0 100644
--- a/funcweb/funcweb/templates/method.html
+++ b/funcweb/funcweb/templates/method.html
@@ -5,9 +5,12 @@
<body>
<div class="method">
${minion}.${module}.${method}
- <form action="${tg.url('/run?minion=%s&amp;module=%s&amp;method=%s' % (minion, module, method))}" method="POST">
- <input type="text" name="arguments" />
+ <form action="${tg.url('/run/%s/%s/%s' % (minion, module, method))}" method="POST">
+ <input type="text" name="arguments" id="methodargs"/>
</form>
+ <script type="text/javascript">
+ $(document).ready($("#methodargs").focus());
+ </script>
</div>
</body>
</html>