Commit 05b7b301 authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] make header caption prefix configurable

parent dbea9e21
...@@ -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 () {
......
...@@ -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;
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment