a.bernstein90
Forum Replies Created
-
Forum: Plugins
In reply to: [Collapse-O-Matic] Content not collapsedI’ve found the culprit. There seems to be a problem with my theme, I use Workality Lite.
After noticing that the problem only occured when opening the page from the “works” page I looked around to see in what way links from that page are opened differently. What I found was this (for other people experiencing this issue with the workality theme, this is in the drone.js file):
/// GET POSTS $('a.getworks').live('click',function(e) { var id = $(this).attr('data-id'); var token = $(this).attr('data-token'); var murl = $(this).attr('href'); var type = $(this).attr('data-type'); $('html, body').animate({scrollTop:0}, 'slow', "easeInOutExpo"); $('.ajaxloader').fadeIn(); $('.sliderdiv').slideUp(); $.post(mdajaxurl.ajax,{action:'md_work_post',token:token,id:id, type:type},function(data) { if(data!=0) { $('#post-list').fadeOut('normal',function() { updatelinks(murl); $('.navibg.withall').hide(); $('.works-single').hide().html(data).fadeIn('normal'); $(".fitvids").fitVids(); $('.ajaxloader').fadeOut(); socialRevive(); if(type=='blog') { postCommentAjax(); } }); } }); // e.preventDefault(); });Uncommenting e.preventDefault(); did the trick.
I don’t want to mark this topic as resolved just yet since I’d prefer a solution that doesn’t involve modifying the theme if possible.
Forum: Plugins
In reply to: [Collapse-O-Matic] Content not collapsedOut of curiosity I tried this (while renaming the old collapse_init to collapse_init_old):
function collapse_init() { //timeout setTimeout(collapse_init_old, 4000) //wait four seconds before continuing }This doesn’t do the trick for me though as it’s rater distracting to see the content collapse after you’ve already started to look at it.
I sure hope there is a better solution 😀