diff --git a/app/assets/javascripts/halfnarp.js b/app/assets/javascripts/halfnarp.js index 4a72c9d..34a4317 100644 --- a/app/assets/javascripts/halfnarp.js +++ b/app/assets/javascripts/halfnarp.js @@ -222,6 +222,7 @@ if ( $( this ).hasClass('highlighted') ) { $( this ).toggleClass('selected'); $('.info').addClass('hidden'); + $('.submit').click(); } else { $('.highlighted').removeClass('highlighted'); $( this ).addClass('highlighted'); @@ -229,8 +230,8 @@ } else { $( this ).toggleClass('selected'); $('.info').addClass('hidden'); + $('.submit').click(); } - $('.submit').click(); event.stopPropagation(); }); /* Put new event into DOM tree. Track defaults to 'Other' */