mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 11:10:56 +08:00
[DE PE SSE] By bug 62989
This commit is contained in:
@ -603,7 +603,7 @@ Common.UI.HintManager = new(function() {
|
||||
}
|
||||
}
|
||||
if (curr.prop('id') === 'btn-go-back' || curr.closest('.btn-slot').prop('id') === 'slot-btn-options' ||
|
||||
curr.closest('.btn-slot').prop('id') === 'slot-btn-mode' || curr.prop('id') === 'btn-favorite' || curr.parent().prop('id') === 'tlb-box-users' ||
|
||||
curr.closest('.btn-slot').prop('id') === 'slot-btn-mode' || curr.prop('id') === 'id-btn-favorite' || curr.parent().prop('id') === 'tlb-box-users' ||
|
||||
curr.prop('id') === 'left-btn-thumbs' || curr.hasClass('scroll') || curr.prop('id') === 'left-btn-about' ||
|
||||
curr.prop('id') === 'left-btn-support' || curr.closest('.btn-slot').prop('id') === 'slot-btn-search') {
|
||||
_resetToDefault();
|
||||
|
||||
@ -273,6 +273,7 @@ define([
|
||||
me.btnFavorite.on('click', function (e) {
|
||||
// wait for setFavorite method
|
||||
// me.options.favorite = !me.options.favorite;
|
||||
// me.btnFavorite.changeIcon(me.options.favorite ? {next: 'btn-in-favorite', curr: 'btn-favorite'} : {next: 'btn-favorite', curr: 'btn-in-favorite'});
|
||||
// me.btnFavorite.changeIcon(me.options.favorite ? {next: 'btn-in-favorite'} : {curr: 'btn-in-favorite'});
|
||||
// me.btnFavorite.updateHint(!me.options.favorite ? me.textAddFavorite : me.textRemoveFavorite);
|
||||
Common.NotificationCenter.trigger('markfavorite', !me.options.favorite);
|
||||
@ -491,7 +492,7 @@ define([
|
||||
});
|
||||
|
||||
me.btnFavorite = new Common.UI.Button({
|
||||
id: 'btn-favorite',
|
||||
id: 'id-btn-favorite',
|
||||
cls: 'btn-header',
|
||||
iconCls: 'toolbar__icon icon--inverse btn-favorite',
|
||||
dataHint: '0',
|
||||
@ -567,7 +568,7 @@ define([
|
||||
|
||||
if ( this.options.favorite !== undefined && this.options.favorite!==null) {
|
||||
me.btnFavorite.render($html.find('#slot-btn-favorite'));
|
||||
me.btnFavorite.changeIcon(!!me.options.favorite ? {next: 'btn-in-favorite'} : {curr: 'btn-in-favorite'});
|
||||
me.btnFavorite.changeIcon(!!me.options.favorite ? {next: 'btn-in-favorite', curr: 'btn-favorite'} : {next: 'btn-favorite', curr: 'btn-in-favorite'});
|
||||
me.btnFavorite.updateHint(!me.options.favorite ? me.textAddFavorite : me.textRemoveFavorite);
|
||||
} else {
|
||||
$html.find('#slot-btn-favorite').hide();
|
||||
@ -744,7 +745,7 @@ define([
|
||||
setFavorite: function (value) {
|
||||
this.options.favorite = value;
|
||||
this.btnFavorite[value!==undefined && value!==null ? 'show' : 'hide']();
|
||||
this.btnFavorite.changeIcon(!!value ? {next: 'btn-in-favorite'} : {curr: 'btn-in-favorite'});
|
||||
this.btnFavorite.changeIcon(!!value ? {next: 'btn-in-favorite', curr: 'btn-favorite'} : {next: 'btn-favorite', curr: 'btn-in-favorite'});
|
||||
this.btnFavorite.updateHint(!value ? this.textAddFavorite : this.textRemoveFavorite);
|
||||
updateDocNamePosition(appConfig);
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user