1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub-skin.git synced 2024-04-28 23:29:27 +03:00

Реагировать только на событие 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

View file

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