Fix bug when apply new font (current font name and new name are empty)
This commit is contained in:
parent
7e2c0fac51
commit
d3690e9264
|
@ -1138,6 +1138,7 @@ define([
|
||||||
onFontNameSelect: function(combo, record) {
|
onFontNameSelect: function(combo, record) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
if (record.isNewFont) {
|
if (record.isNewFont) {
|
||||||
|
!this.getApplication().getController('Main').isModalShowed &&
|
||||||
Common.UI.warning({
|
Common.UI.warning({
|
||||||
width: 500,
|
width: 500,
|
||||||
closable: false,
|
closable: false,
|
||||||
|
|
|
@ -1083,6 +1083,7 @@ define([
|
||||||
onFontNameSelect: function(combo, record) {
|
onFontNameSelect: function(combo, record) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
if (record.isNewFont) {
|
if (record.isNewFont) {
|
||||||
|
!this.getApplication().getController('Main').isModalShowed &&
|
||||||
Common.UI.warning({
|
Common.UI.warning({
|
||||||
width: 500,
|
width: 500,
|
||||||
closable: false,
|
closable: false,
|
||||||
|
|
|
@ -1296,6 +1296,7 @@ define([
|
||||||
onFontNameSelect: function(combo, record) {
|
onFontNameSelect: function(combo, record) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
if (record.isNewFont) {
|
if (record.isNewFont) {
|
||||||
|
!this.getApplication().getController('Main').isModalShowed &&
|
||||||
Common.UI.warning({
|
Common.UI.warning({
|
||||||
width: 500,
|
width: 500,
|
||||||
closable: false,
|
closable: false,
|
||||||
|
|
Loading…
Reference in a new issue