[Embedded] Customization for header logo and url.
This commit is contained in:
parent
fb8b479e60
commit
e4ec08a696
|
@ -313,7 +313,7 @@ var ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEditorPermissions(params) {
|
function onEditorPermissions(params) {
|
||||||
if ( params.asc_getCanBranding() && (typeof config.customization == 'object') &&
|
if ( (params.asc_getLicenseType() === Asc.c_oLicenseResult.Success) && (typeof config.customization == 'object') &&
|
||||||
config.customization && config.customization.logo ) {
|
config.customization && config.customization.logo ) {
|
||||||
|
|
||||||
var logo = $('#header-logo');
|
var logo = $('#header-logo');
|
||||||
|
|
|
@ -391,7 +391,7 @@ var ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEditorPermissions(params) {
|
function onEditorPermissions(params) {
|
||||||
if ( params.asc_getCanBranding() && (typeof config.customization == 'object') &&
|
if ( (params.asc_getLicenseType() === Asc.c_oLicenseResult.Success) && (typeof config.customization == 'object') &&
|
||||||
config.customization && config.customization.logo ) {
|
config.customization && config.customization.logo ) {
|
||||||
|
|
||||||
var logo = $('#header-logo');
|
var logo = $('#header-logo');
|
||||||
|
|
|
@ -292,7 +292,7 @@ var ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEditorPermissions(params) {
|
function onEditorPermissions(params) {
|
||||||
if ( params.asc_getCanBranding() && (typeof config.customization == 'object') &&
|
if ( (params.asc_getLicenseType() === Asc.c_oLicenseResult.Success) && (typeof config.customization == 'object') &&
|
||||||
config.customization && config.customization.logo ) {
|
config.customization && config.customization.logo ) {
|
||||||
|
|
||||||
var logo = $('#header-logo');
|
var logo = $('#header-logo');
|
||||||
|
|
Loading…
Reference in a new issue