88//= require jquery.flexslider-min
99//= require underscore
1010
11- //= require jquery- dropdown
11+ //= require jquery. dropdown
1212
1313$ ( function ( ) {
14- $ ( 'a.remove-parent' ) . live ( 'click' , function ( e ) {
14+ $ ( 'a.remove-parent' ) . on ( 'click' , this . selector , function ( e ) {
1515 $ ( this ) . parents ( '.' + $ ( this ) . attr ( 'data-parent' ) ) . slideUp ( ) ;
1616 e . preventDefault ( ) ;
1717 } ) ;
1818 registerButtons ( ) ;
19- } )
19+ } ) ;
2020
2121$ ( function ( ) {
2222 $ ( '[placeholder]' ) . focus ( function ( ) {
@@ -33,15 +33,15 @@ $(function () {
3333 }
3434 } ) . blur ( ) ;
3535
36- $ ( '.save a' ) . live ( 'click' , function ( e ) {
36+ $ ( '.save a' ) . on ( 'click' , this . selector , function ( e ) {
3737 var form = $ ( this ) . parents ( 'form' ) ;
3838 $ . post ( form . attr ( 'action' ) , form . serialize ( ) ) . success ( function ( response ) {
3939
4040 } ) ;
4141 e . preventDefault ( ) ;
4242 } )
4343
44- $ ( 'a.submitEndorsement' ) . live ( 'click' , function ( e ) {
44+ $ ( 'a.submitEndorsement' ) . on ( 'click' , this . selector , function ( e ) {
4545 var form = $ ( this ) . parents ( 'form' ) ;
4646 $ . post ( form . attr ( 'action' ) , form . serialize ( ) ) . success ( function ( response ) {
4747 $ . fancybox . close ( ) ;
@@ -67,18 +67,18 @@ $(function () {
6767 } , 1500 ) ;
6868 } ) ;
6969 e . preventDefault ( ) ;
70- } )
70+ } ) ;
7171
7272 $ ( '#nocount input, #withcount input' ) . live ( 'change' , function ( ) {
7373 $ ( '.endorseButtons .markdown, .endorseButtons .html, .endorseButtons .textile' ) . toggleClass ( 'hide' ) ;
7474 } ) ;
7575
76- $ ( 'a.seeMore' ) . live ( 'click' , function ( e ) {
76+ $ ( 'a.seeMore' ) . on ( 'click' , this . selector , function ( e ) {
7777 $ ( this ) . siblings ( '.seeMore' ) . slideDown ( ) ;
7878 e . preventDefault ( ) ;
7979 } ) ;
8080
81- $ ( '#achievementcode a ' ) . live ( 'click' , function ( ) {
81+ $ ( '#achievementcode' ) . on ( 'click' , this . selector , function ( ) {
8282 $ ( this ) . hide ( ) . parents ( 'em' ) . hide ( ) ;
8383 $ ( '.claimcode' ) . fadeIn ( ) ;
8484 e . preventDefault ( ) ;
@@ -115,11 +115,11 @@ $(function () {
115115 }
116116 } ) ;
117117
118- $ ( "a.closefancybox" ) . live ( " click" , function ( e ) {
118+ $ ( "a.closefancybox" ) . on ( ' click' , this . selector , function ( e ) {
119119 $ . fancybox . close ( ) ;
120120 } ) ;
121121
122- $ ( '.event_links a.more' ) . live ( 'click' , function ( e ) {
122+ $ ( '.event_links a.more' ) . on ( 'click' , this . selector , function ( e ) {
123123 $ ( this ) . siblings ( '.more.hide' ) . slideToggle ( ) ;
124124 e . preventDefault ( ) ;
125125 } ) ;
@@ -192,7 +192,7 @@ function handle_redirect(response) {
192192}
193193
194194function registerButtons ( ) {
195- $ ( "a.follow-team:not(.noauth)" ) . live ( " click" , function ( e ) {
195+ $ ( "a.follow-team:not(.noauth)" ) . on ( ' click' , this . selector , function ( e ) {
196196 $ ( this ) . toggleClass ( "following" ) ;
197197 return e . preventDefault ( ) ;
198198 } ) ;
0 commit comments