Fix Bug 46000
This commit is contained in:
parent
94b63a8981
commit
a5efba6cca
|
@ -78,6 +78,7 @@ define([
|
|||
'<label id="rib-doc-name" />' +
|
||||
'</section>' +
|
||||
'<a id="rib-save-status" class="status-label locked"><%= textSaveEnd %></a>' +
|
||||
'<section style="display: inherit;">' +
|
||||
'<div class="hedset">' +
|
||||
'<div class="btn-slot" id="slot-hbtn-edit"></div>' +
|
||||
'<div class="btn-slot" id="slot-hbtn-print"></div>' +
|
||||
|
@ -102,6 +103,7 @@ define([
|
|||
'<div class="btn-slot" id="slot-btn-back"></div>' +
|
||||
'<div class="btn-slot" id="slot-btn-options"></div>' +
|
||||
'</div>' +
|
||||
'</section>' +
|
||||
'</section>';
|
||||
|
||||
var templateLeftBox = '<section class="logo">' +
|
||||
|
@ -110,7 +112,7 @@ define([
|
|||
|
||||
var templateTitleBox = '<section id="box-document-title">' +
|
||||
'<div class="extra"></div>' +
|
||||
'<div class="hedset" id="header-tools">' +
|
||||
'<div class="hedset">' +
|
||||
'<div class="btn-slot" id="slot-btn-dt-save"></div>' +
|
||||
'<div class="btn-slot" id="slot-btn-dt-print"></div>' +
|
||||
'<div class="btn-slot" id="slot-btn-dt-undo"></div>' +
|
||||
|
@ -213,9 +215,9 @@ define([
|
|||
'</div>');
|
||||
}
|
||||
|
||||
var $tools = this.btnSave.$el.parent('#header-tools');
|
||||
var _left_width = $tools.prev().outerWidth() + $tools.outerWidth(),
|
||||
_right_width = this.labelUserName.outerWidth();
|
||||
var $parent = this.labelDocName.parent();
|
||||
var _left_width = $parent.position().left,
|
||||
_right_width = $parent.next().outerWidth();
|
||||
|
||||
if ( _left_width < _right_width )
|
||||
this.labelDocName.parent().css('padding-left', _right_width - _left_width);
|
||||
|
@ -241,6 +243,7 @@ define([
|
|||
}
|
||||
});
|
||||
|
||||
if ( $panelUsers ) {
|
||||
onResetUsers(storeUsers);
|
||||
|
||||
$panelUsers.on('shown.bs.dropdown', function () {
|
||||
|
@ -269,6 +272,7 @@ define([
|
|||
|
||||
$labelChangeRights[(!mode.isOffline && (mode.sharingSettingsUrl && mode.sharingSettingsUrl.length || mode.canRequestSharingSettings))?'show':'hide']();
|
||||
$panelUsers[(editingUsers > 1 || editingUsers > 0 && !appConfig.isEdit && !appConfig.isRestrictedEdit || !mode.isOffline && (mode.sharingSettingsUrl && mode.sharingSettingsUrl.length || mode.canRequestSharingSettings)) ? 'show' : 'hide']();
|
||||
}
|
||||
|
||||
if ( $saveStatus ) {
|
||||
$saveStatus.attr('data-width', me.textSaveExpander);
|
||||
|
|
|
@ -77,7 +77,9 @@ define([
|
|||
'Toolbar': {
|
||||
'render:before' : function (toolbar) {
|
||||
var config = SSE.getController('Main').appOptions;
|
||||
if (!config.isEditDiagram && !config.isEditMailMerge)
|
||||
toolbar.setExtra('right', me.header.getPanel('right', config));
|
||||
|
||||
if (!config.isEdit || config.customization && !!config.customization.compactHeader)
|
||||
toolbar.setExtra('left', me.header.getPanel('left', config));
|
||||
|
||||
|
|
Loading…
Reference in a new issue