Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ramnew2006

    (@ramnew2006)

    Update
    ——
    Finally I fixed it. The problem with the above code is the usage of j in the jQuery code. I replaced it with the default buddypress global.js which uses jq in the jQuery code.

    Now the javascript inside admin panel is working ??

    If anyone is facing the issue, look into the javascript.

    Thread Starter ramnew2006

    (@ramnew2006)

    Update
    ——
    I found out what is causing the problem. My site is having buddypress installed and I am using a theme called Edu-Clean. A part of code in global.js in edu-clean theme is causing this problem. Here is the code which is causing the problem

    /* Clear BP cookies on logout */
    	j('a.logout').click( function() {
    		j.cookie('bp-activity-scope', null, {path: '/'});
    		j.cookie('bp-activity-filter', null, {path: '/'});
    		j.cookie('bp-activity-oldestpage', null, {path: '/'});
    
    		var objects = [ 'members', 'groups', 'blogs', 'forums' ];
    		j(objects).each( function(i) {
    			j.cookie('bp-' + objects[i] + '-scope', null, {path: '/'} );
    			j.cookie('bp-' + objects[i] + '-filter', null, {path: '/'} );
    			j.cookie('bp-' + objects[i] + '-extras', null, {path: '/'} );
    		});
    	});
    });
Viewing 2 replies - 1 through 2 (of 2 total)