1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Доработки связанные с обновлением widget.js

This commit is contained in:
Denis Shakhov 2016-02-17 10:21:57 +07:00
parent 45c84e8b73
commit 83fd9deb6d
3 changed files with 7 additions and 4 deletions

View file

@ -230,7 +230,8 @@
* Сворачивает ветку комментариев
*/
fold: function() {
this._addClass( 'folded' ).nextAll( this.options.selectors.wrapper ).hide();
this._addClass( 'folded' )
this.element.nextAll( this.options.selectors.wrapper ).hide();
this.onFold();
},
@ -238,7 +239,8 @@
* Разворачивает ветку комментариев
*/
unfold: function() {
this._removeClass( 'folded' ).nextAll( this.options.selectors.wrapper ).show();
this._removeClass( 'folded' )
this.element.nextAll( this.options.selectors.wrapper ).show();
this.onUnfold();
},

View file

@ -78,7 +78,8 @@
this._removeClass( 'added' );
if ( response.bState ) {
this._addClass( 'added' ).attr( 'title', ls.lang.get( 'favourite.remove' ) );
this._addClass( 'added' )
this.element.attr( 'title', ls.lang.get( 'favourite.remove' ) );
} else {
this.element.attr( 'title', ls.lang.get( 'favourite.add' ) );
}

@ -1 +1 @@
Subproject commit ed574c4a95e25491314d9480a3ffe16e45a27a9b
Subproject commit cc86fe40c55e919609613b02cb43be1d75290756