bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1343875 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js
Date Tue, 29 May 2012 17:42:20 GMT
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 () {



Mime
View raw message