You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/05/29 19:42:20 UTC

svn commit: r1343875 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js

Author: gjm
Date: Tue May 29 17:42:19 2012
New Revision: 1343875

URL: http://svn.apache.org/viewvc?rev=1343875&view=rev
Log:
theme: fix for hitting enter on quick ticket summary field. Enter will now trigger the create ticket code - fixes #92 (from antony)

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js?rev=1343875&r1=1343874&r2=1343875&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js Tue May 29 17:42:19 2012
@@ -43,6 +43,12 @@ $( function () {
       $('#qct-fieldset input, #qct-fieldset select').val('');
     }
 
+    // We want to submit via #qct-create
+    $('#qct-form').submit(function(e) {
+      $('#qct-create').click();
+      e.preventDefault();
+    });
+
     // Install quick create box click handlers
     $('#qct-cancel').click(
         function () {