Fix auto submission on mobile

This commit is contained in:
Petko Bordjukov 2017-09-28 16:59:39 +03:00
parent 436f097038
commit 2e4801663c
1 changed files with 2 additions and 1 deletions

View File

@ -222,6 +222,7 @@
if ( $( this ).hasClass('highlighted') ) { if ( $( this ).hasClass('highlighted') ) {
$( this ).toggleClass('selected'); $( this ).toggleClass('selected');
$('.info').addClass('hidden'); $('.info').addClass('hidden');
$('.submit').click();
} else { } else {
$('.highlighted').removeClass('highlighted'); $('.highlighted').removeClass('highlighted');
$( this ).addClass('highlighted'); $( this ).addClass('highlighted');
@ -229,8 +230,8 @@
} else { } else {
$( this ).toggleClass('selected'); $( this ).toggleClass('selected');
$('.info').addClass('hidden'); $('.info').addClass('hidden');
$('.submit').click();
} }
$('.submit').click();
event.stopPropagation(); event.stopPropagation();
}); });
/* Put new event into DOM tree. Track defaults to 'Other' */ /* Put new event into DOM tree. Track defaults to 'Other' */