Fix goback customization
This commit is contained in:
parent
3e383721fb
commit
2a4ab59d4c
|
@ -305,6 +305,10 @@ define([
|
|||
|
||||
this.mode.canBack ? this.$el.find('#fm-btn-back').show().prev().show() :
|
||||
this.$el.find('#fm-btn-back').hide().prev().hide();
|
||||
if (!this.customizationDone) {
|
||||
this.customizationDone = true;
|
||||
Common.Utils.applyCustomization(this.mode.customization, {goback: '#fm-btn-back > a'});
|
||||
}
|
||||
|
||||
this.panels['opts'].setMode(this.mode);
|
||||
this.panels['info'].setMode(this.mode);
|
||||
|
|
|
@ -285,6 +285,10 @@ define([
|
|||
|
||||
this.mode.canBack ? this.$el.find('#fm-btn-back').show().prev().show() :
|
||||
this.$el.find('#fm-btn-back').hide().prev().hide();
|
||||
if (!this.customizationDone) {
|
||||
this.customizationDone = true;
|
||||
Common.Utils.applyCustomization(this.mode.customization, {goback: '#fm-btn-back > a'});
|
||||
}
|
||||
|
||||
this.miHelp[this.mode.canHelp ?'show':'hide']();
|
||||
this.miHelp.$el.prev()[this.mode.canHelp ?'show':'hide']();
|
||||
|
|
|
@ -276,6 +276,10 @@ define([
|
|||
|
||||
this.mode.canBack ? this.$el.find('#fm-btn-back').show().prev().show() :
|
||||
this.$el.find('#fm-btn-back').hide().prev().hide();
|
||||
if (!this.customizationDone) {
|
||||
this.customizationDone = true;
|
||||
Common.Utils.applyCustomization(this.mode.customization, {goback: '#fm-btn-back > a'});
|
||||
}
|
||||
|
||||
this.miHelp[this.mode.canHelp ?'show':'hide']();
|
||||
this.miHelp.$el.prev()[this.mode.canHelp ?'show':'hide']();
|
||||
|
|
Loading…
Reference in a new issue