Updated application.

This commit is contained in:
agolybev
2015-08-17 17:19:04 +03:00
parent cd34405d7e
commit a7b9b3a979
330 changed files with 81139 additions and 172701 deletions

View File

@@ -188,12 +188,18 @@
Common.Analytics.trackEvent("Load", "Complete");
}
function onEditorPermissions(params) {
if (params.asc_getCanBranding() && (typeof config.customization == "object") && config.customization && config.customization.logoUrlEmbedded) {
$("#header-logo").css({
"background-image": 'url("' + config.customization.logoUrlEmbedded + '")',
"background-position": "0 center",
"background-repeat": "no-repeat"
});
if (params.asc_getCanBranding() && (typeof config.customization == "object") && config.customization && config.customization.logo) {
var logo = $("#header-logo");
if (config.customization.logo.imageEmbedded) {
logo.css({
"background-image": 'url("' + config.customization.logo.imageEmbedded + '")',
"background-position": "0 center",
"background-repeat": "no-repeat"
});
}
if (config.customization.logo.url) {
logo.attr("href", config.customization.logo.url);
}
}
}
function showMask() {

View File

@@ -37,11 +37,12 @@
template: _.template(menuTemplate),
events: function () {
return {
"click #left-btn-support": function () {
window.open("http://feedback.onlyoffice.com/");
},
"click #left-btn-comments": _.bind(this.onCoauthOptions, this),
"click #left-btn-chat": _.bind(this.onCoauthOptions, this)
"click #left-btn-chat": _.bind(this.onCoauthOptions, this),
"click #left-btn-support": function () {
var config = this.mode.customization;
config && !!config.feedback && !!config.feedback.url ? window.open(config.feedback.url) : window.open("http://feedback.onlyoffice.com/");
}
};
},
initialize: function () {