Реагировать только на событие click

Должно починить работу на мобильниках
This commit is contained in:
Alexander Yakovlev 2019-04-29 16:35:10 +07:00
parent 2048edeeaa
commit 735f245107
Signed by: oreolek
GPG Key ID: 1CDC4B7820C93BD3
1 changed files with 2 additions and 2 deletions

View File

@ -6,10 +6,10 @@
*/
jQuery(document).ready(function($){
$(".search-icon").on('click touchstart', function(){
$(".search-icon").on('click', function(){
$(".main-search").toggle()
});
$('.spoiler-title').on('click touchstart', function(){
$('.spoiler-title').on('click', function(){
$(this).toggleClass('open');
$(this).parent().children('div.spoiler-body').toggle('normal');
return false;