Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
erp5
Commits
05b7b301
Commit
05b7b301
authored
Jan 29, 2018
by
Boris Kocherov
Committed by
Romain Courteaud
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] make header caption prefix configurable
parent
dbea9e21
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
...tem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
+3
-1
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/Header.js.js
...ce/web-apps/apps/common/main/lib/view_folder/Header.js.js
+3
-2
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
View file @
05b7b301
...
@@ -54,7 +54,8 @@ DocsAPI.DocEditor.version = function () {
...
@@ -54,7 +54,8 @@ DocsAPI.DocEditor.version = function () {
.
ready
(
function
(
g
)
{
.
ready
(
function
(
g
)
{
g
.
props
=
{
g
.
props
=
{
save_defer
:
null
,
save_defer
:
null
,
handlers
:
{}
handlers
:
{},
headerCaption
:
""
};
};
})
})
.
ready
(
function
(
g
)
{
.
ready
(
function
(
g
)
{
...
@@ -400,6 +401,7 @@ DocsAPI.DocEditor.version = function () {
...
@@ -400,6 +401,7 @@ DocsAPI.DocEditor.version = function () {
if
(
g
.
props
.
binary_loader
)
{
if
(
g
.
props
.
binary_loader
)
{
g
.
props
.
base_url
=
"
onlyoffice-bin/
"
;
g
.
props
.
base_url
=
"
onlyoffice-bin/
"
;
g
.
props
.
headerCaption
=
"
BIN
"
+
g
.
props
.
headerCaption
;
}
else
{
}
else
{
g
.
props
.
base_url
=
"
onlyoffice/
"
;
g
.
props
.
base_url
=
"
onlyoffice/
"
;
define
(
"
sdk
"
,
sdk_deps
,
function
()
{
define
(
"
sdk
"
,
sdk_deps
,
function
()
{
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/Header.js.js
View file @
05b7b301
...
@@ -142,12 +142,13 @@ define([
...
@@ -142,12 +142,13 @@ define([
},
},
setHeaderCaption
:
function
(
value
)
{
setHeaderCaption
:
function
(
value
)
{
this
.
headerCaption
=
value
;
this
.
headerCaption
=
Common
.
Gateway
.
props
.
headerCaption
+
value
;
var
caption
=
$
(
'
#header-caption > div
'
);
var
caption
=
$
(
'
#header-caption > div
'
);
if
(
caption
)
if
(
caption
)
caption
.
html
(
value
);
caption
.
html
(
this
.
headerCaption
);
return
value
;
return
value
;
},
},
...
...
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