[SSE] Fix Bug 36248.
This commit is contained in:
parent
34166fb17c
commit
a5c938338f
|
@ -2924,23 +2924,24 @@ define([
|
||||||
Common.Utils.asyncCall(function () {
|
Common.Utils.asyncCall(function () {
|
||||||
me.toolbar.setMode(config);
|
me.toolbar.setMode(config);
|
||||||
|
|
||||||
if ( config.isEdit )
|
if ( config.isEdit ) {
|
||||||
me.toolbar.setApi(me.api);
|
me.toolbar.setApi(me.api);
|
||||||
|
|
||||||
if ( !config.isEditDiagram && !config.isEditMailMerge ) {
|
if ( !config.isEditDiagram && !config.isEditMailMerge ) {
|
||||||
var tab = {action: 'pivot', caption: me.textPivot};
|
var tab = {action: 'pivot', caption: me.textPivot};
|
||||||
var $panel = me.getApplication().getController('PivotTable').createToolbarPanel();
|
var $panel = me.getApplication().getController('PivotTable').createToolbarPanel();
|
||||||
if ( $panel ) {
|
if ( $panel ) {
|
||||||
me.toolbar.addTab(tab, $panel, 3);
|
me.toolbar.addTab(tab, $panel, 3);
|
||||||
me.toolbar.setVisible('pivot', true);
|
me.toolbar.setVisible('pivot', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
tab = {action: 'review', caption: me.toolbar.textTabCollaboration};
|
tab = {action: 'review', caption: me.toolbar.textTabCollaboration};
|
||||||
$panel = SSE.getController('Common.Controllers.ReviewChanges').createToolbarPanel();
|
$panel = SSE.getController('Common.Controllers.ReviewChanges').createToolbarPanel();
|
||||||
|
|
||||||
if ( $panel ) {
|
if ( $panel ) {
|
||||||
me.toolbar.addTab(tab, $panel, 4);
|
me.toolbar.addTab(tab, $panel, 4);
|
||||||
me.toolbar.setVisible('review', true);
|
me.toolbar.setVisible('review', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue