[DE] fix bug 52950
This commit is contained in:
parent
e6e7638053
commit
68e45180a2
|
@ -351,10 +351,6 @@ define([
|
|||
|
||||
if ( me.btnOptions )
|
||||
me.btnOptions.updateHint(me.tipViewSettings);
|
||||
|
||||
if ( me.btnContentMode ) {
|
||||
me.btnContentMode.on('click', function (e) { Common.UI.Themes.toggleContentTheme(); });
|
||||
}
|
||||
}
|
||||
|
||||
function onDocNameKeyDown(e) {
|
||||
|
@ -392,9 +388,6 @@ define([
|
|||
}
|
||||
|
||||
function onContentThemeChangedToDark(isdark) {
|
||||
if ( this.btnContentMode ) {
|
||||
this.btnContentMode.changeIcon(!isdark ? {curr: 'btn-mode-light', next: 'btn-mode-dark'} : {curr: 'btn-mode-dark', next: 'btn-mode-light'});
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -561,15 +554,6 @@ define([
|
|||
$btnUsers = $html.find('.btn-users');
|
||||
|
||||
$panelUsers.hide();
|
||||
|
||||
if ( !!window.DE ) {
|
||||
var mode_cls = Common.UI.Themes.isContentThemeDark() ? 'btn-mode-light' : 'btn-mode-dark';
|
||||
me.btnContentMode = createTitleButton('toolbar__icon icon--inverse ' + mode_cls, $html.findById('#slot-btn-mode'), undefined, 'bottom', 'big');
|
||||
|
||||
var document = window.DE.getController('Main').document;
|
||||
me.btnContentMode.setVisible(Common.UI.Themes.isDarkTheme() && !/^pdf|djvu|xps|oxps$/.test(document.fileType));
|
||||
}
|
||||
|
||||
return $html;
|
||||
} else
|
||||
if ( role == 'title' ) {
|
||||
|
|
|
@ -379,7 +379,6 @@ define([
|
|||
menuItem.$el.prev('.divider')[current_dark ? 'show' : 'hide']();
|
||||
|
||||
menuItem.setChecked(current_dark);
|
||||
this.header.btnContentMode.setVisible(current_dark);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue