fix bug 36857
This commit is contained in:
parent
274c785296
commit
159b26aac5
|
@ -208,6 +208,7 @@ define([
|
|||
appConfig = mode;
|
||||
|
||||
var me = this;
|
||||
if ( !me.branding.goback )
|
||||
me.btnGoBack.updateHint(me.textBack);
|
||||
me.btnGoBack.on('click', function (e) {
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
|
@ -475,13 +476,19 @@ define([
|
|||
|
||||
this.branding = value;
|
||||
|
||||
if (value && value.logo && value.logo.image) {
|
||||
if ( value ) {
|
||||
if ( value.logo && value.logo.image ) {
|
||||
element = $('#header-logo');
|
||||
if ( element ) {
|
||||
if (element) {
|
||||
element.html('<img src="' + value.logo.image + '" style="max-width:100px; max-height:20px; margin: 0;"/>');
|
||||
element.css({'background-image': 'none', width: 'auto'});
|
||||
}
|
||||
}
|
||||
|
||||
if ( !!value.goback ) {
|
||||
this.btnGoBack.updateHint(value.goback.text);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
setHeaderCaption: function (value) {
|
||||
|
|
Loading…
Reference in a new issue