;(function($,_,undefined){"use strict";ips.controller.register('forums.front.topic.jumptopost',{initialize:function(){this.on('click','[data-action="jumpToPost"]',this.jumpToPost);this.setup();},setup:function(){},jumpToPost:function(e){e.preventDefault();let id=e.currentTarget.getAttribute('data-post-id');let url=e.currentTarget.getAttribute('data-url');let ele=$(`#elComment_${id}`);if(id&&ele.length){window.location.hash=`#comment-${id}`;}else{window.location.href=url;}},flashPost:function(element){element.addClass('jumpedto');setTimeout(function(){element.removeClass('jumpedto');},200);}});}(jQuery,_));;