Tagged: x
-
AuthorPosts
-
June 14, 2016 at 10:31 am #1041553
Malte KParticipantHello 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 #1041785
ThaiModeratorHi 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 #1041920
Malte KParticipantIts working!! 🙂 THX!!
June 14, 2016 at 10:41 pm #1042596
Prasant RaiModeratorYou are most welcome. 🙂
June 15, 2016 at 1:55 am #1042769
Malte KParticipantThe 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 #1043145
ChristianModeratorGlad you’ve sorted it out. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1041553 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
