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
4655b91e
Commit
4655b91e
authored
Nov 03, 2016
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.1.8'
parents
cd86b759
2b4ebdef
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
19 deletions
+44
-19
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
+2
-2
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
-2
No files found.
apps/api/documents/api.js
View file @
4655b91e
...
...
@@ -108,7 +108,8 @@
comments: 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 @
4655b91e
...
...
@@ -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
'
);
...
...
@@ -965,12 +969,14 @@ define([
this
.
_state
.
licenseWarning
=
(
licType
===
Asc
.
c_oLicenseResult
.
Connections
)
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
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
.
getApplication
().
getController
(
'
Viewport
'
).
getView
(
'
Common.Views.Header
'
).
setBranding
(
this
.
editorConfig
.
customization
);
params
.
asc_getTrial
()
&&
this
.
getApplication
().
getController
(
'
Viewport
'
).
getView
(
'
Common.Views.Header
'
).
setDeveloperMode
(
true
);
this
.
appOptions
.
canBrandingExt
=
params
.
asc_getCanBranding
()
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
applyModeCommonElements
();
this
.
applyModeEditorElements
();
...
...
@@ -1403,6 +1409,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 @
4655b91e
...
...
@@ -1195,7 +1195,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 @
4655b91e
...
...
@@ -59,10 +59,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
'
);
...
...
@@ -744,12 +748,14 @@ define([
this
.
_state
.
licenseWarning
=
(
licType
===
Asc
.
c_oLicenseResult
.
Connections
)
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
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
.
getApplication
().
getController
(
'
Viewport
'
).
getView
(
'
Common.Views.Header
'
).
setBranding
(
this
.
editorConfig
.
customization
);
params
.
asc_getTrial
()
&&
this
.
getApplication
().
getController
(
'
Viewport
'
).
getView
(
'
Common.Views.Header
'
).
setDeveloperMode
(
true
);
this
.
appOptions
.
canBrandingExt
=
params
.
asc_getCanBranding
()
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
applyModeCommonElements
();
this
.
applyModeEditorElements
();
...
...
@@ -1170,6 +1176,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 @
4655b91e
...
...
@@ -1282,10 +1282,10 @@ define([
}
}
if
(
mode
.
isDesktopApp
)
{
if
(
mode
.
isDesktopApp
)
$
(
'
.toolbar-group-native
'
).
hide
();
if
(
mode
.
isDesktopApp
||
mode
.
canBrandingExt
&&
mode
.
customization
&&
mode
.
customization
.
header
===
false
)
this
.
mnuitemHideTitleBar
.
hide
();
}
this
.
lockToolbar
(
PE
.
enumLock
.
cantPrint
,
!
mode
.
canPrint
,
{
array
:
[
this
.
btnPrint
]});
},
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
4655b91e
...
...
@@ -65,10 +65,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
'
);
...
...
@@ -761,10 +765,12 @@ define([
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
this
.
appOptions
.
canLicense
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
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
);
}
...
...
@@ -1297,6 +1303,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 @
4655b91e
...
...
@@ -1650,10 +1650,10 @@ define([
}
}
if
(
mode
.
isDesktopApp
)
{
if
(
mode
.
isDesktopApp
)
$
(
'
.toolbar-group-native
'
).
hide
();
if
(
mode
.
isDesktopApp
||
mode
.
canBrandingExt
&&
mode
.
customization
&&
mode
.
customization
.
header
===
false
)
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