From 05b305716aa6ebc7208e5f983e2b2cfb58e15665 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 25 Sep 2017 18:48:44 +0300 Subject: [PATCH] Auto submit preferences on change --- app/assets/javascripts/halfnarp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/halfnarp.js b/app/assets/javascripts/halfnarp.js index 435c018..4a72c9d 100644 --- a/app/assets/javascripts/halfnarp.js +++ b/app/assets/javascripts/halfnarp.js @@ -230,6 +230,7 @@ $( this ).toggleClass('selected'); $('.info').addClass('hidden'); } + $('.submit').click(); event.stopPropagation(); }); /* Put new event into DOM tree. Track defaults to 'Other' */