[all] flag to hide file name from toolbar
This commit is contained in:
parent
2d613dae77
commit
4866923553
|
@ -124,7 +124,8 @@
|
||||||
showReviewChanges: false,
|
showReviewChanges: false,
|
||||||
help: true,
|
help: true,
|
||||||
compactHeader: false,
|
compactHeader: false,
|
||||||
toolbarBreakTabs: false
|
toolbarBreakTabs: false,
|
||||||
|
toolbarHideFileName: false
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
autostart: ['asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}'],
|
autostart: ['asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}'],
|
||||||
|
|
|
@ -362,6 +362,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.style-skip-docname .toolbar {
|
||||||
|
#box-doc-name > input {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,11 @@ define([
|
||||||
if ( config.canBranding ) {
|
if ( config.canBranding ) {
|
||||||
if ( config.customization.toolbarBreakTabs )
|
if ( config.customization.toolbarBreakTabs )
|
||||||
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
|
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
|
||||||
|
|
||||||
|
if ( config.customization.toolbarHideFileName )
|
||||||
|
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( config.isEdit && (!config.canBranding || !config.customization.compactHeader)) {
|
if ( config.isEdit && (!config.canBranding || !config.customization.compactHeader)) {
|
||||||
var $title = me.viewport.vlayout.getItem('title').el;
|
var $title = me.viewport.vlayout.getItem('title').el;
|
||||||
$title.html(me.header.getPanel('title', config)).show();
|
$title.html(me.header.getPanel('title', config)).show();
|
||||||
|
|
|
@ -188,6 +188,9 @@ define([
|
||||||
if ( config.canBranding ) {
|
if ( config.canBranding ) {
|
||||||
if ( config.customization.toolbarBreakTabs )
|
if ( config.customization.toolbarBreakTabs )
|
||||||
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
|
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
|
||||||
|
|
||||||
|
if ( config.customization.toolbarHideFileName )
|
||||||
|
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,9 @@ define([
|
||||||
if ( config.canBranding ) {
|
if ( config.canBranding ) {
|
||||||
if ( config.customization.toolbarBreakTabs )
|
if ( config.customization.toolbarBreakTabs )
|
||||||
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
|
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
|
||||||
|
|
||||||
|
if ( config.customization.toolbarHideFileName )
|
||||||
|
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue