KickApps:将类添加到“组”页上的“离开/加入”按钮。

【KickApps:将类添加到“组”页上的“离开/加入”按钮。】亦余心之所善兮,虽九死其犹未悔。这篇文章主要讲述KickApps:将类添加到“组”页上的“离开/加入”按钮。相关的知识,希望能为你提供帮助。
Sometime, you need unique classes on the leave join button of the groups page. Place this script in your AC footer.

--
For more tips and tricks checkout the < a href=https://www.songbingjia.com/android/" http://www.kickdeveloper.com/resources" > KickApps resources page< /a> .

  1. var oldStallLeaveJoin = stallLeaveJoin;
  2. newStallLeaveJoing = function( ) {
  3. var isMember = $j( '#ka_joinButton > input') .attr( 'value') ==
  4. " leave this group" ;
  5. if ( isMember) {
  6. $j( '#ka_joinButton >
  7. input') .addClass( 'ka_isMember') .removeClass( 'ka_isNotMember') ;
  8. } else {
  9. $j( '#ka_joinButton >
  10. input') .addClass( 'ka_isNotMember') .removeClass( 'ka_isMember') ;
  11. }
  12. } ;
  13. stallLeaveJoin = function( ) {
  14. newStallLeaveJoing( ) ;
  15. oldStallLeaveJoin( ) ;
  16. } ;
  17. // uncomment the below line only if needed
  18. // newStallLeaveJoing();


    推荐阅读