Javascript error after update to 3.1.26
Home › Forums › Pro Support › Javascript error after update to 3.1.26
- This topic has 3 replies, 2 voices, and was last updated 4 years ago by Kriti Sharma.
-
AuthorPosts
-
March 2, 2020 at 11:44 am #70197Filmac Centre SLParticipant
(index):1390 Uncaught SyntaxError: Unexpected end of input
<script>jQuery(document).ready(function($){var ResponsiveMenuPro ={trigger: ‘#responsive-menu-pro-button’,animationSpeed: 500,breakpoint: 1210,isOpen: false,activeClass: ‘is-active’,container: ‘#responsive-menu-pro-container’,openClass: ‘responsive-menu-pro-open’,activeArrow: ‘▲’,inactiveArrow: ‘▼’,wrapper: ‘#responsive-menu-pro-wrapper’,linkElement: ‘.responsive-menu-pro-item-link’,subMenuTransitionTime: 200,originalHeight: ”,openMenu: function(){$(this.trigger).addClass(this.activeClass);$(‘html’).addClass(this.openClass);$(‘.responsive-menu-pro-button-icon-active’).hide();$(‘.responsive-menu-pro-button-icon-inactive’).show();this.fadeMenuIn();$(“#responsive-menu-pro > li”).each(function(index){$(this).show();$(this).animate({opacity: 0}, 0);$(this).delay(100 * index).animate({‘margin-left’: “0”,’opacity’: 1}, 500)});bodyScrollLock.disableBodyScroll(document.getElementById(this.container),{reserveScrollBarGap: true});this.isOpen = true},closeMenu: function(){$(this.trigger).removeClass(this.activeClass);$(‘html’).removeClass(this.openClass);$(‘.responsive-menu-pro-button-icon-inactive’).hide();$(‘.responsive-menu-pro-button-icon-active’).show();this.fadeMenuOut();$(“#responsive-menu-pro > li”).removeAttr(‘style’);bodyScrollLock.clearAllBodyScrollLocks();this.isOpen = false},triggerMenu: function(){this.isOpen ? this.closeMenu() : this.openMenu()},triggerSubArrow: function(subarrow){var sub_menu = $(subarrow).parent().siblings(‘.responsive-menu-pro-submenu’);var self = this;if(sub_menu.hasClass(‘responsive-menu-pro-submenu-open’)){sub_menu.slideUp(self.subMenuTransitionTime, ‘linear’,function(){$(this).css(‘display’, ”)}).removeClass(‘responsive-menu-pro-submenu-open’);$(subarrow).html(this.inactiveArrow);$(subarrow).removeClass(‘responsive-menu-pro-subarrow-active’)}else{sub_menu.slideDown(self.subMenuTransitionTime, ‘linear’).addClass(‘responsive-menu-pro-submenu-open’);$(subarrow).html(this.activeArrow);$(subarrow).addClass(‘responsive-menu-pro-subarrow-active’)}},menuHeight: function(){return $(this.container).height()},menuWidth: function(){return $(this.container).width()},wrapperHeight: function(){return $(this.wrapper).height()},fadeMenuIn: function(){$(this.container).fadeIn(this.animationSpeed)},fadeMenuOut: function(){$(this.container).fadeOut(this.animationSpeed, function(){$(this).css(‘display’, ”)})},init: function(){var self = this;$(‘#responsive-menu-pro-container’).swipe({swipe:function(event, direction, distance, duration, fingerCount, fingerData){if($(window).width() < self.breakpoint){if (direction == ‘right’){self.closeMenu()}}},threshold: 25,allowPageScroll: “vertical”,excludedElements: “button, input, select, textarea, a, .noSwipe, .responsive-menu-pro-search-box”});$(this.trigger).on(‘click’, function(e){e.stopPropagation();self.triggerMenu()});$(this.trigger).mouseup(function(){$(self.trigger).blur()});$(‘.responsive-menu-pro-subarrow’).on(‘click’, function(e){e.preventDefault();e.stopPropagation();self.triggerSubArrow(this)});$(window).resize(function(){if($(window).width() >= self.breakpoint){if(self.isOpen){self.closeMenu()}$(‘#responsive-menu-pro, .responsive-menu-pro-submenu’).removeAttr(‘style’)}else{}});$(this.linkElement).on(‘click’, function(e){if($(window).width() < self.breakpoint){e.preventDefault();old_href = $(this).attr(‘href’);old_target = typeof $(this).attr(‘target’) == ‘undefined’ ? ‘_self’ : $(this).attr(‘target’);if(self.isOpen){if($(e.target).closest(‘.responsive-menu-pro-subarrow’).length){return}if(typeof old_href != ‘undefined’){self.closeMenu();setTimeout(function(){window.open(old_href, old_target)}, self.animationSpeed)}}}});$(document).on(‘click’, ‘body’, function (e){if($(window).width() < self.breakpoint){if(self.isOpen){if ($(e.target).closest(‘#responsive-menu-pro-container’).length ||$(e.target).closest(‘#responsive-menu-pro-button’).length){return}}self.closeMenu()}});$(window).scroll(function (e){if( $(window).width() < self.breakpoint ){var menuSearchBox = $( ‘.responsive-menu-pro-search-box’ );//If focus is on search-box then menu will not be close. if( menuSearchBox && menuSearchBox.is( ‘:focus’ ) ){return}else if( self.isOpen ){self.closeMenu()}}})}};ResponsiveMenuPro.init()});</script> <!–[if lte IE 8]>
March 3, 2020 at 8:20 am #70199Kriti SharmaKeymasterHi,
As we are not able to reproduce this issue on our side. We will need credentials of affected website for further troubleshooting. Please arrange the same for us.
You can download the previous version of our plugin on live website for the time being.
Here is the link: https://downloads.wordpress.org/plugin/responsive-menu.3.1.25.zip
Please keep in mind if you go ahead and use the previous version we won’t be able to reproduce the issue and fix it. In that case we will need a staging version of your live site.
Regards,
KritiMarch 4, 2020 at 8:49 am #70203Filmac Centre SLParticipantSorry for the delay.
Finally there was a conflict with another plugin when activating the Minify option in Responsive menu. Once deactivated it already works correctly.Regards
March 5, 2020 at 2:33 am #70206Kriti SharmaKeymasterI am glad that the issue is resolved now.
Regards,
Kriti -
AuthorPosts
- The topic ‘Javascript error after update to 3.1.26’ is closed to new replies.