Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
b936280d
Commit
b936280d
authored
Nov 03, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.1.8' into develop
parents
6804c4a2
2b4ebdef
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
20 deletions
+43
-20
apps/api/documents/api.js
apps/api/documents/api.js
+2
-1
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+13
-5
apps/documenteditor/main/app/view/Toolbar.js
apps/documenteditor/main/app/view/Toolbar.js
+1
-1
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+12
-4
apps/presentationeditor/main/app/view/Toolbar.js
apps/presentationeditor/main/app/view/Toolbar.js
+1
-1
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+12
-4
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+2
-4
No files found.
apps/api/documents/api.js
View file @
b936280d
...
...
@@ -110,7 +110,8 @@
compactToolbar: false,
leftMenu: true,
rightMenu: true,
toolbar: true
toolbar: true,
header: true
},
plugins: {
autoStartGuid: 'asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}',
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
b936280d
...
...
@@ -61,10 +61,14 @@ define([
var
mapCustomizationElements
=
{
about
:
'
button#left-btn-about
'
,
feedback
:
'
button#left-btn-support
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
};
var
mapCustomizationExtElements
=
{
toolbar
:
'
#viewport #toolbar
'
,
leftMenu
:
'
#viewport #left-menu
'
,
rightMenu
:
'
#viewport #right-menu
'
leftMenu
:
'
#viewport #left-menu, #viewport #id-toolbar-full-placeholder-btn-settings, #viewport #id-toolbar-short-placeholder-btn-settings
'
,
rightMenu
:
'
#viewport #right-menu
'
,
header
:
'
#viewport #header
'
};
Common
.
localStorage
.
setId
(
'
text
'
);
...
...
@@ -996,13 +1000,15 @@ define([
this
.
_state
.
licenseWarning
=
(
licType
===
Asc
.
c_oLicenseResult
.
Connections
)
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
var
headerView
=
this
.
getApplication
().
getController
(
'
Viewport
'
).
getView
(
'
Common.Views.Header
'
);
this
.
appOptions
.
canBranding
=
params
.
asc_getCanBranding
(
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
appOptions
.
canBranding
=
(
licType
!==
Asc
.
c_oLicenseResult
.
Error
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
if
(
this
.
appOptions
.
canBranding
)
headerView
.
setBranding
(
this
.
editorConfig
.
customization
);
params
.
asc_getTrial
()
&&
headerView
.
setDeveloperMode
(
true
);
this
.
appOptions
.
canRename
&&
headerView
.
setCanRename
(
true
);
this
.
appOptions
.
canBrandingExt
=
params
.
asc_getCanBranding
()
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
applyModeCommonElements
();
this
.
applyModeEditorElements
();
...
...
@@ -1441,6 +1447,8 @@ define([
if
(
!
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
true
;
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationElements
);
if
(
this
.
appOptions
.
canBrandingExt
)
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationExtElements
);
}
Common
.
NotificationCenter
.
trigger
(
'
layout:changed
'
,
'
main
'
);
...
...
apps/documenteditor/main/app/view/Toolbar.js
View file @
b936280d
...
...
@@ -1197,7 +1197,7 @@ define([
]
})
);
if
(
this
.
mode
.
isDesktopApp
)
if
(
this
.
mode
.
isDesktopApp
||
this
.
mode
.
canBrandingExt
&&
this
.
mode
.
customization
&&
this
.
mode
.
customization
.
header
===
false
)
this
.
mnuitemHideTitleBar
.
hide
();
this
.
btnMarkers
.
setMenu
(
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
b936280d
...
...
@@ -61,10 +61,14 @@ define([
var
mapCustomizationElements
=
{
about
:
'
button#left-btn-about
'
,
feedback
:
'
button#left-btn-support
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
};
var
mapCustomizationExtElements
=
{
toolbar
:
'
#viewport #toolbar
'
,
leftMenu
:
'
#viewport #left-menu
'
,
rightMenu
:
'
#viewport #right-menu
'
leftMenu
:
'
#viewport #left-menu, #viewport #id-toolbar-full-placeholder-btn-settings, #viewport #id-toolbar-short-placeholder-btn-settings
'
,
rightMenu
:
'
#viewport #right-menu
'
,
header
:
'
#viewport #header
'
};
Common
.
localStorage
.
setId
(
'
presentation
'
);
...
...
@@ -761,13 +765,15 @@ define([
this
.
_state
.
licenseWarning
=
(
licType
===
Asc
.
c_oLicenseResult
.
Connections
)
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
var
headerView
=
this
.
getApplication
().
getController
(
'
Viewport
'
).
getView
(
'
Common.Views.Header
'
);
this
.
appOptions
.
canBranding
=
params
.
asc_getCanBranding
(
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
appOptions
.
canBranding
=
(
licType
!==
Asc
.
c_oLicenseResult
.
Error
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
if
(
this
.
appOptions
.
canBranding
)
headerView
.
setBranding
(
this
.
editorConfig
.
customization
);
params
.
asc_getTrial
()
&&
headerView
.
setDeveloperMode
(
true
);
this
.
appOptions
.
canRename
&&
headerView
.
setCanRename
(
true
);
this
.
appOptions
.
canBrandingExt
=
params
.
asc_getCanBranding
()
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
applyModeCommonElements
();
this
.
applyModeEditorElements
();
...
...
@@ -1194,6 +1200,8 @@ define([
if
(
!
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
true
;
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationElements
);
if
(
this
.
appOptions
.
canBrandingExt
)
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationExtElements
);
}
Common
.
NotificationCenter
.
trigger
(
'
layout:changed
'
,
'
main
'
);
...
...
apps/presentationeditor/main/app/view/Toolbar.js
View file @
b936280d
...
...
@@ -1157,7 +1157,7 @@ define([
]
})
);
if
(
this
.
mode
.
isDesktopApp
)
if
(
this
.
mode
.
isDesktopApp
||
this
.
mode
.
canBrandingExt
&&
this
.
mode
.
customization
&&
this
.
mode
.
customization
.
header
===
false
)
this
.
mnuitemHideTitleBar
.
hide
();
this
.
mnuZoomOut
=
new
Common
.
UI
.
Button
({
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
b936280d
...
...
@@ -66,10 +66,14 @@ define([
var
mapCustomizationElements
=
{
about
:
'
button#left-btn-about
'
,
feedback
:
'
button#left-btn-support
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
};
var
mapCustomizationExtElements
=
{
toolbar
:
'
#viewport #toolbar
'
,
leftMenu
:
'
#viewport #left-menu
'
,
rightMenu
:
'
#viewport #right-menu
'
leftMenu
:
'
#viewport #left-menu, #viewport #id-toolbar-full-placeholder-btn-settings, #viewport #id-toolbar-short-placeholder-btn-settings
'
,
rightMenu
:
'
#viewport #right-menu
'
,
header
:
'
#viewport #header
'
};
Common
.
localStorage
.
setId
(
'
table
'
);
...
...
@@ -773,10 +777,12 @@ define([
this
.
appOptions
.
canChat
=
this
.
appOptions
.
canLicense
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
this
.
appOptions
.
canBranding
=
params
.
asc_getCanBranding
(
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
appOptions
.
canBranding
=
(
licType
!==
Asc
.
c_oLicenseResult
.
Error
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
if
(
this
.
appOptions
.
canBranding
)
this
.
headerView
.
setBranding
(
this
.
editorConfig
.
customization
);
this
.
appOptions
.
canBrandingExt
=
params
.
asc_getCanBranding
()
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
params
.
asc_getTrial
()
&&
this
.
headerView
.
setDeveloperMode
(
true
);
this
.
appOptions
.
canRename
&&
this
.
headerView
.
setCanRename
(
true
);
}
...
...
@@ -1319,6 +1325,8 @@ define([
if
(
!
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
true
;
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationElements
);
if
(
this
.
appOptions
.
canBrandingExt
)
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationExtElements
);
}
this
.
stackLongActions
.
pop
({
id
:
InitApplication
,
type
:
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
});
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
b936280d
...
...
@@ -1375,7 +1375,7 @@ define([
this
.
mnuitemHideFormulaBar
.
setChecked
(
!!
options
.
formula
);
this
.
mnuitemHideHeadings
.
setChecked
(
!!
options
.
headings
);
if
(
this
.
mode
.
isDesktopApp
)
if
(
this
.
mode
.
isDesktopApp
||
this
.
mode
.
canBrandingExt
&&
this
.
mode
.
customization
&&
this
.
mode
.
customization
.
header
===
false
)
this
.
mnuitemHideTitleBar
.
hide
();
}
...
...
@@ -1708,10 +1708,8 @@ define([
}
}
if
(
mode
.
isDesktopApp
)
{
if
(
mode
.
isDesktopApp
)
$
(
'
.toolbar-group-native
'
).
hide
();
this
.
mnuitemHideTitleBar
&&
this
.
mnuitemHideTitleBar
.
hide
();
}
this
.
lockToolbar
(
SSE
.
enumLock
.
cantPrint
,
!
mode
.
canPrint
,
{
array
:
[
this
.
btnPrint
]});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment