Revision: 10888
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 16, 2009 17:21 by krunkosaurus
Initial Code
var oldStallLeaveJoin = stallLeaveJoin; newStallLeaveJoing = function() { var isMember = $j('#ka_joinButton > input').attr('value') == "leave this group"; if (isMember) { $j('#ka_joinButton > input').addClass('ka_isMember').removeClass('ka_isNotMember'); } else { $j('#ka_joinButton > input').addClass('ka_isNotMember').removeClass('ka_isMember'); } }; stallLeaveJoin = function() { newStallLeaveJoing(); oldStallLeaveJoin(); }; // uncomment the below line only if needed // newStallLeaveJoing();
Initial URL
Initial Description
Sometime, you need unique classes on the leave join button of the groups page. Place this script in your AC footer. --<br> For more tips and tricks checkout the <a href="http://www.kickdeveloper.com/resources">KickApps resources page</a>.
Initial Title
KickApps: Adding classes to the leave / join button on the groups page.
Initial Tags
javascript, page
Initial Language
JavaScript