Commit ff0d9fdf authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] make header caption prefix configurable

parent 378dff94
......@@ -54,7 +54,8 @@ DocsAPI.DocEditor.version = function () {
.ready(function (g) {
g.props = {
save_defer: null,
handlers: {}
handlers: {},
headerCaption: ""
};
})
.ready(function (g) {
......@@ -400,6 +401,7 @@ DocsAPI.DocEditor.version = function () {
if (g.props.binary_loader) {
g.props.base_url = "onlyoffice-bin/";
g.props.headerCaption = "BIN " + g.props.headerCaption;
} else {
g.props.base_url = "onlyoffice/";
define("sdk", sdk_deps, function () {
......
......@@ -142,12 +142,13 @@ define([
},
setHeaderCaption: function(value) {
this.headerCaption = value;
this.headerCaption = Common.Gateway.props.headerCaption +
value;
var caption = $('#header-caption > div');
if (caption)
caption.html(value);
caption.html(this.headerCaption);
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