Tagged: x
-
AuthorPosts
-
June 14, 2016 at 10:31 am #1041553
Hello I do have a question. I do have this code, which is working fine for chrome browser, but in safari the code is not working. it should do: when i click on something, it should click on another thing and click there to open for example the x theme search. what do i do wrong?
jQuery(document).ready(function($) { // Kontakt $( '.sfm-menu-item-12263, .sfm-menu-item-12284' ).click(function(e) { e.preventDefault(); LM.hideSidebar(); $( '.kontakt' ).trigger("click"); }); // Suche $( '.sfm-menu-item-12264, .sfm-menu-item-12285' ).click(function(e) { e.preventDefault(); LM.hideSidebar(); $( '.x-btn-navbar-search' ).trigger("click"); }); });
June 14, 2016 at 12:42 pm #1041785Hi There,
Please try with this code instead:
jQuery(function($) { $(document).ready(function() { // Kontakt $( '.sfm-menu-item-12263, .sfm-menu-item-12284' ).on('click', function(e) { e.preventDefault(); LM.hideSidebar(); $( '.kontakt' ).trigger("click"); }); // Suche $( '.sfm-menu-item-12264, .sfm-menu-item-12285' ).on('click', function(e) { e.preventDefault(); LM.hideSidebar(); $( '.x-btn-navbar-search' ).trigger("click"); }); }); });
If it doesn’t work, please provide us with your website URL and admin account so we can take a closer look.
Thank you.
June 14, 2016 at 1:59 pm #1041920Its working!! 🙂 THX!!
June 14, 2016 at 10:41 pm #1042596You are most welcome. 🙂
June 15, 2016 at 1:55 am #1042769The Problem was also that the object to click was hidden. So i needed to make in CSS visibility: visible !important … safari has problems to simulate a click for hidden objects
June 15, 2016 at 8:09 am #1043145Glad you’ve sorted it out. 🙂
-
AuthorPosts