From a03544fbc273ce79f8bf9651622227e6556d6ce2 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 6 Oct 2015 18:21:38 +0300 Subject: [PATCH] Submit on click --- app/assets/javascripts/halfnarp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/halfnarp.js b/app/assets/javascripts/halfnarp.js index ce8ba09..1ea259e 100644 --- a/app/assets/javascripts/halfnarp.js +++ b/app/assets/javascripts/halfnarp.js @@ -25,7 +25,7 @@ }); /* Add callback for submit click */ - $('.submit').click( function() { + $('.event, .submit').click( function() { var myapi; /* Get user's preferences and try to save them locally */