Hide save buttons
This commit is contained in:
parent
e95b5fc0e7
commit
4354a26a9b
|
@ -151,6 +151,7 @@
|
||||||
close: false / true, // close menu button
|
close: false / true, // close menu button
|
||||||
settings: false / true, // advanced settings
|
settings: false / true, // advanced settings
|
||||||
info: false / true // document info
|
info: false / true // document info
|
||||||
|
save: false/true // save button
|
||||||
} / false / true,
|
} / false / true,
|
||||||
home: {
|
home: {
|
||||||
mailmerge: false/true // mail merge button
|
mailmerge: false/true // mail merge button
|
||||||
|
@ -160,9 +161,11 @@
|
||||||
collaboration: false / true // collaboration tab
|
collaboration: false / true // collaboration tab
|
||||||
protect: false / true, // protect tab
|
protect: false / true, // protect tab
|
||||||
plugins: false / true // plugins tab
|
plugins: false / true // plugins tab
|
||||||
|
save: false/true // save button on toolbar in
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
users: false/true // users list button
|
users: false/true // users list button
|
||||||
|
save: false/true // save button
|
||||||
},
|
},
|
||||||
leftMenu: {
|
leftMenu: {
|
||||||
navigation: false/true,
|
navigation: false/true,
|
||||||
|
|
|
@ -118,7 +118,7 @@ define([
|
||||||
var templateTitleBox = '<section id="box-document-title">' +
|
var templateTitleBox = '<section id="box-document-title">' +
|
||||||
'<div class="extra"></div>' +
|
'<div class="extra"></div>' +
|
||||||
'<div class="hedset">' +
|
'<div class="hedset">' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-save"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-save" data-layout-name="header-save"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-print"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-print"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-undo"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-undo"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-redo"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-redo"></div>' +
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<li class="fm-first-item"></li>
|
<li class="fm-first-item"></li>
|
||||||
<li id="fm-btn-return" class="fm-btn" data-layout-name="toolbar-file-close"></li>
|
<li id="fm-btn-return" class="fm-btn" data-layout-name="toolbar-file-close"></li>
|
||||||
<li class="devider"></li>
|
<li class="devider"></li>
|
||||||
<li id="fm-btn-save" class="fm-btn"></li>
|
<li id="fm-btn-save" class="fm-btn" data-layout-name="toolbar-file-save"></li>
|
||||||
<li id="fm-btn-edit" class="fm-btn"></li>
|
<li id="fm-btn-edit" class="fm-btn"></li>
|
||||||
<li id="fm-btn-download" class="fm-btn"></li>
|
<li id="fm-btn-download" class="fm-btn"></li>
|
||||||
<li id="fm-btn-save-copy" class="fm-btn"></li>
|
<li id="fm-btn-save-copy" class="fm-btn"></li>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<span class="btn-slot" id="slot-btn-print"></span>
|
<span class="btn-slot" id="slot-btn-print"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot" id="slot-btn-save"></span>
|
<span class="btn-slot" id="slot-btn-save" data-layout-name="toolbar-save"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
|
|
|
@ -369,12 +369,12 @@ define([
|
||||||
var isBCSupport = window["AscDesktopEditor"] ? window["AscDesktopEditor"]["isBlockchainSupport"]() : false;
|
var isBCSupport = window["AscDesktopEditor"] ? window["AscDesktopEditor"]["isBlockchainSupport"]() : false;
|
||||||
this.miSaveCopyAs[((this.mode.canDownload || this.mode.canDownloadOrigin) && (!this.mode.isDesktopApp || !this.mode.isOffline)) && (this.mode.canRequestSaveAs || this.mode.saveAsUrl) && !isBCSupport ?'show':'hide']();
|
this.miSaveCopyAs[((this.mode.canDownload || this.mode.canDownloadOrigin) && (!this.mode.isDesktopApp || !this.mode.isOffline)) && (this.mode.canRequestSaveAs || this.mode.saveAsUrl) && !isBCSupport ?'show':'hide']();
|
||||||
this.miSaveAs[((this.mode.canDownload || this.mode.canDownloadOrigin) && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
this.miSaveAs[((this.mode.canDownload || this.mode.canDownloadOrigin) && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
||||||
this.miSave[this.mode.isEdit?'show':'hide']();
|
this.miSave[this.mode.isEdit && Common.UI.LayoutManager.isElementVisible('toolbar-file-save') ?'show':'hide']();
|
||||||
this.miEdit[!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights ?'show':'hide']();
|
this.miEdit[!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights ?'show':'hide']();
|
||||||
this.miPrint[this.mode.canPrint?'show':'hide']();
|
this.miPrint[this.mode.canPrint?'show':'hide']();
|
||||||
this.miRename[(this.mode.canRename && !this.mode.isDesktopApp) ?'show':'hide']();
|
this.miRename[(this.mode.canRename && !this.mode.isDesktopApp) ?'show':'hide']();
|
||||||
this.miProtect[this.mode.canProtect ?'show':'hide']();
|
this.miProtect[this.mode.canProtect ?'show':'hide']();
|
||||||
separatorVisible = (this.mode.canDownload || this.mode.canDownloadOrigin || this.mode.isEdit || this.mode.canPrint || this.mode.canProtect ||
|
separatorVisible = (this.mode.canDownload || this.mode.canDownloadOrigin || this.mode.isEdit && Common.UI.LayoutManager.isElementVisible('toolbar-file-save') || this.mode.canPrint || this.mode.canProtect ||
|
||||||
!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights || this.mode.canRename && !this.mode.isDesktopApp) && !this.mode.isDisconnected;
|
!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights || this.mode.canRename && !this.mode.isDesktopApp) && !this.mode.isDisconnected;
|
||||||
this.miProtect.$el.find('+.devider')[separatorVisible?'show':'hide']();
|
this.miProtect.$el.find('+.devider')[separatorVisible?'show':'hide']();
|
||||||
separatorVisible && (lastSeparator = this.miProtect.$el.find('+.devider'));
|
separatorVisible && (lastSeparator = this.miProtect.$el.find('+.devider'));
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<li class="fm-first-item"></li>
|
<li class="fm-first-item"></li>
|
||||||
<li id="fm-btn-return" class="fm-btn" data-layout-name="toolbar-file-close"></li>
|
<li id="fm-btn-return" class="fm-btn" data-layout-name="toolbar-file-close"></li>
|
||||||
<li class="devider"></li>
|
<li class="devider"></li>
|
||||||
<li id="fm-btn-save" class="fm-btn"></li>
|
<li id="fm-btn-save" class="fm-btn" data-layout-name="toolbar-file-save"></li>
|
||||||
<li id="fm-btn-edit" class="fm-btn"></li>
|
<li id="fm-btn-edit" class="fm-btn"></li>
|
||||||
<li id="fm-btn-download" class="fm-btn"></li>
|
<li id="fm-btn-download" class="fm-btn"></li>
|
||||||
<li id="fm-btn-save-copy" class="fm-btn"></li>
|
<li id="fm-btn-save-copy" class="fm-btn"></li>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<span class="btn-slot" id="slot-btn-print"></span>
|
<span class="btn-slot" id="slot-btn-print"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot" id="slot-btn-save"></span>
|
<span class="btn-slot" id="slot-btn-save" data-layout-name="toolbar-save"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
|
|
|
@ -370,12 +370,12 @@ define([
|
||||||
var isBCSupport = window["AscDesktopEditor"] ? window["AscDesktopEditor"]["isBlockchainSupport"]() : false;
|
var isBCSupport = window["AscDesktopEditor"] ? window["AscDesktopEditor"]["isBlockchainSupport"]() : false;
|
||||||
this.miSaveCopyAs[(this.mode.canDownload && (!this.mode.isDesktopApp || !this.mode.isOffline)) && (this.mode.canRequestSaveAs || this.mode.saveAsUrl) && !isBCSupport ?'show':'hide']();
|
this.miSaveCopyAs[(this.mode.canDownload && (!this.mode.isDesktopApp || !this.mode.isOffline)) && (this.mode.canRequestSaveAs || this.mode.saveAsUrl) && !isBCSupport ?'show':'hide']();
|
||||||
this.miSaveAs[(this.mode.canDownload && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
this.miSaveAs[(this.mode.canDownload && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
||||||
this.miSave[this.mode.isEdit?'show':'hide']();
|
this.miSave[this.mode.isEdit && Common.UI.LayoutManager.isElementVisible('toolbar-file-save') ?'show':'hide']();
|
||||||
this.miEdit[!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights ?'show':'hide']();
|
this.miEdit[!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights ?'show':'hide']();
|
||||||
this.miPrint[this.mode.canPrint?'show':'hide']();
|
this.miPrint[this.mode.canPrint?'show':'hide']();
|
||||||
this.miRename[(this.mode.canRename && !this.mode.isDesktopApp) ?'show':'hide']();
|
this.miRename[(this.mode.canRename && !this.mode.isDesktopApp) ?'show':'hide']();
|
||||||
this.miProtect[this.mode.canProtect ?'show':'hide']();
|
this.miProtect[this.mode.canProtect ?'show':'hide']();
|
||||||
separatorVisible = (this.mode.canDownload || this.mode.isEdit || this.mode.canPrint || this.mode.canProtect ||
|
separatorVisible = (this.mode.canDownload || this.mode.isEdit && Common.UI.LayoutManager.isElementVisible('toolbar-file-save') || this.mode.canPrint || this.mode.canProtect ||
|
||||||
!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights || this.mode.canRename && !this.mode.isDesktopApp) && !this.mode.isDisconnected;
|
!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights || this.mode.canRename && !this.mode.isDesktopApp) && !this.mode.isDisconnected;
|
||||||
this.miProtect.$el.find('+.devider')[separatorVisible?'show':'hide']();
|
this.miProtect.$el.find('+.devider')[separatorVisible?'show':'hide']();
|
||||||
separatorVisible && (lastSeparator = this.miProtect.$el.find('+.devider'));
|
separatorVisible && (lastSeparator = this.miProtect.$el.find('+.devider'));
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<li class="fm-first-item"></li>
|
<li class="fm-first-item"></li>
|
||||||
<li id="fm-btn-return" class="fm-btn" data-layout-name="toolbar-file-close"></li>
|
<li id="fm-btn-return" class="fm-btn" data-layout-name="toolbar-file-close"></li>
|
||||||
<li class="devider"></li>
|
<li class="devider"></li>
|
||||||
<li id="fm-btn-save" class="fm-btn"></li>
|
<li id="fm-btn-save" class="fm-btn" data-layout-name="toolbar-file-save"></li>
|
||||||
<li id="fm-btn-edit" class="fm-btn"></li>
|
<li id="fm-btn-edit" class="fm-btn"></li>
|
||||||
<li id="fm-btn-download" class="fm-btn"></li>
|
<li id="fm-btn-download" class="fm-btn"></li>
|
||||||
<li id="fm-btn-save-copy" class="fm-btn"></li>
|
<li id="fm-btn-save-copy" class="fm-btn"></li>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<span class="btn-slot" id="slot-btn-print"></span>
|
<span class="btn-slot" id="slot-btn-print"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot" id="slot-btn-save"></span>
|
<span class="btn-slot" id="slot-btn-save" data-layout-name="toolbar-save"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
|
|
|
@ -354,12 +354,12 @@ define([
|
||||||
var isBCSupport = window["AscDesktopEditor"] ? window["AscDesktopEditor"]["isBlockchainSupport"]() : false;
|
var isBCSupport = window["AscDesktopEditor"] ? window["AscDesktopEditor"]["isBlockchainSupport"]() : false;
|
||||||
this.miSaveCopyAs[(this.mode.canDownload && (!this.mode.isDesktopApp || !this.mode.isOffline)) && (this.mode.canRequestSaveAs || this.mode.saveAsUrl) && !isBCSupport ?'show':'hide']();
|
this.miSaveCopyAs[(this.mode.canDownload && (!this.mode.isDesktopApp || !this.mode.isOffline)) && (this.mode.canRequestSaveAs || this.mode.saveAsUrl) && !isBCSupport ?'show':'hide']();
|
||||||
this.miSaveAs[(this.mode.canDownload && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
this.miSaveAs[(this.mode.canDownload && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
||||||
this.miSave[this.mode.isEdit?'show':'hide']();
|
this.miSave[this.mode.isEdit && Common.UI.LayoutManager.isElementVisible('toolbar-file-save') ?'show':'hide']();
|
||||||
this.miEdit[!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights ?'show':'hide']();
|
this.miEdit[!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights ?'show':'hide']();
|
||||||
this.miPrint[this.mode.canPrint?'show':'hide']();
|
this.miPrint[this.mode.canPrint?'show':'hide']();
|
||||||
this.miRename[(this.mode.canRename && !this.mode.isDesktopApp) ?'show':'hide']();
|
this.miRename[(this.mode.canRename && !this.mode.isDesktopApp) ?'show':'hide']();
|
||||||
this.miProtect[this.mode.canProtect ?'show':'hide']();
|
this.miProtect[this.mode.canProtect ?'show':'hide']();
|
||||||
separatorVisible = (this.mode.canDownload || this.mode.isEdit || this.mode.canPrint || this.mode.canProtect ||
|
separatorVisible = (this.mode.canDownload || this.mode.isEdit && Common.UI.LayoutManager.isElementVisible('toolbar-file-save') || this.mode.canPrint || this.mode.canProtect ||
|
||||||
!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights || this.mode.canRename && !this.mode.isDesktopApp) && !this.mode.isDisconnected;
|
!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights || this.mode.canRename && !this.mode.isDesktopApp) && !this.mode.isDisconnected;
|
||||||
this.miProtect.$el.find('+.devider')[separatorVisible?'show':'hide']();
|
this.miProtect.$el.find('+.devider')[separatorVisible?'show':'hide']();
|
||||||
separatorVisible && (lastSeparator = this.miProtect.$el.find('+.devider'));
|
separatorVisible && (lastSeparator = this.miProtect.$el.find('+.devider'));
|
||||||
|
|
Loading…
Reference in a new issue