allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [2/4] git commit: [#4812] ticket:506 Removed form submit on enter for title field
Date Wed, 01 Jan 2014 05:36:16 GMT
[#4812] ticket:506 Removed form submit on enter for title field


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3a9db46f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3a9db46f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3a9db46f

Branch: refs/heads/master
Commit: 3a9db46fdc59ad97bb1b43349498a2705b9bd756
Parents: 8039b3d
Author: Yaroslav Sokolovsky <yaroslav.sokolovsky@gmail.com>
Authored: Tue Dec 24 14:55:36 2013 +0200
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Jan 1 05:35:37 2014 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/templates/tracker/new_ticket.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3a9db46f/ForgeTracker/forgetracker/templates/tracker/new_ticket.html
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/templates/tracker/new_ticket.html b/ForgeTracker/forgetracker/templates/tracker/new_ticket.html
index 649bb6e..c984ecd 100644
--- a/ForgeTracker/forgetracker/templates/tracker/new_ticket.html
+++ b/ForgeTracker/forgetracker/templates/tracker/new_ticket.html
@@ -55,7 +55,8 @@
 {% block extra_js %}
 <script type="text/javascript">
   $(document).ready(function(){
-    $('input[name="q"]').focus();
+    $('input[name="ticket_form.summary"]').focus();
   });
+  $('input[name="ticket_form.summary"]').keypress(function(event) { return event.keyCode
!= 13; });
 </script>
 {% endblock %}


Mime
View raw message