mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Fix user follow
Текстовки менялись не у того элемента
This commit is contained in:
parent
5b93a0fad1
commit
19f6bb039e
|
@ -24,6 +24,9 @@
|
|||
// Отписаться
|
||||
unfollow: null
|
||||
},
|
||||
selectors: {
|
||||
item: '> a'
|
||||
},
|
||||
classes: {
|
||||
active: 'active'
|
||||
},
|
||||
|
@ -60,7 +63,8 @@
|
|||
* Коллбэк вызываемый при подписке
|
||||
*/
|
||||
onFollow: function( response ) {
|
||||
this._addClass( 'active' ).text( ls.lang.get('user.actions.unfollow') );
|
||||
this.elements.item.text( ls.lang.get('user.actions.unfollow') );
|
||||
this._addClass( 'active' );
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -74,7 +78,8 @@
|
|||
* Коллбэк вызываемый при отписке
|
||||
*/
|
||||
onUnfollow: function( response ) {
|
||||
this._removeClass( 'active' ).text( ls.lang.get('user.actions.follow') );
|
||||
this.elements.item.text( ls.lang.get('user.actions.follow') );
|
||||
this._removeClass( 'active' );
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
|
Loading…
Reference in a new issue