[desktop] added option to hide themes selector
This commit is contained in:
parent
11ab64a4d8
commit
668dfb5680
|
@ -86,6 +86,9 @@ define([
|
|||
$('.asc-window.modal').css('top', obj.skiptoparea);
|
||||
|
||||
Common.Utils.InternalSettings.set('window-inactive-area-top', obj.skiptoparea);
|
||||
} else
|
||||
if ( obj.lockthemes != undefined ) {
|
||||
Common.UI.Themes.setAvailable(!obj.lockthemes);
|
||||
}
|
||||
} else
|
||||
if (/editor:config/.test(cmd)) {
|
||||
|
|
|
@ -226,7 +226,11 @@ define([
|
|||
},
|
||||
|
||||
available: function () {
|
||||
return !Common.Utils.isIE;
|
||||
return !Common.Utils.isIE && !!this.locked;
|
||||
},
|
||||
|
||||
setAvailable: function (value) {
|
||||
this.locked = value;
|
||||
},
|
||||
|
||||
map: function () {
|
||||
|
|
Loading…
Reference in a new issue