Bug 35768.
This commit is contained in:
parent
b17354f2cc
commit
62029e2d5d
|
@ -740,6 +740,9 @@ define([
|
||||||
if (this._isDocReady)
|
if (this._isDocReady)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (this._state.openDlg)
|
||||||
|
this._state.openDlg.close();
|
||||||
|
|
||||||
var me = this,
|
var me = this,
|
||||||
value;
|
value;
|
||||||
|
|
||||||
|
@ -1722,10 +1725,12 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdvancedOptions: function(advOptions) {
|
onAdvancedOptions: function(advOptions) {
|
||||||
|
if (this._state.openDlg) return;
|
||||||
|
|
||||||
var type = advOptions.asc_getOptionId(),
|
var type = advOptions.asc_getOptionId(),
|
||||||
me = this, dlg;
|
me = this;
|
||||||
if (type == Asc.c_oAscAdvancedOptionsID.TXT) {
|
if (type == Asc.c_oAscAdvancedOptionsID.TXT) {
|
||||||
dlg = new Common.Views.OpenDialog({
|
me._state.openDlg = new Common.Views.OpenDialog({
|
||||||
type: type,
|
type: type,
|
||||||
codepages: advOptions.asc_getOptions().asc_getCodePages(),
|
codepages: advOptions.asc_getOptions().asc_getCodePages(),
|
||||||
settings: advOptions.asc_getOptions().asc_getRecommendedSettings(),
|
settings: advOptions.asc_getOptions().asc_getRecommendedSettings(),
|
||||||
|
@ -1735,10 +1740,11 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CTXTAdvancedOptions(encoding));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CTXTAdvancedOptions(encoding));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
||||||
dlg = new Common.Views.OpenDialog({
|
me._state.openDlg = new Common.Views.OpenDialog({
|
||||||
type: type,
|
type: type,
|
||||||
handler: function (value) {
|
handler: function (value) {
|
||||||
me.isShowOpenDialog = false;
|
me.isShowOpenDialog = false;
|
||||||
|
@ -1746,14 +1752,15 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (dlg) {
|
if (me._state.openDlg) {
|
||||||
this.isShowOpenDialog = true;
|
this.isShowOpenDialog = true;
|
||||||
this.loadMask && this.loadMask.hide();
|
this.loadMask && this.loadMask.hide();
|
||||||
this.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
this.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
||||||
dlg.show();
|
me._state.openDlg.show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -552,6 +552,9 @@ define([
|
||||||
if (this._isDocReady)
|
if (this._isDocReady)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (this._state.openDlg)
|
||||||
|
this._state.openDlg.close();
|
||||||
|
|
||||||
var me = this,
|
var me = this,
|
||||||
value;
|
value;
|
||||||
|
|
||||||
|
@ -1601,10 +1604,12 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdvancedOptions: function(advOptions) {
|
onAdvancedOptions: function(advOptions) {
|
||||||
|
if (this._state.openDlg) return;
|
||||||
|
|
||||||
var type = advOptions.asc_getOptionId(),
|
var type = advOptions.asc_getOptionId(),
|
||||||
me = this, dlg;
|
me = this;
|
||||||
if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
||||||
dlg = new Common.Views.OpenDialog({
|
me._state.openDlg = new Common.Views.OpenDialog({
|
||||||
type: type,
|
type: type,
|
||||||
handler: function (value) {
|
handler: function (value) {
|
||||||
me.isShowOpenDialog = false;
|
me.isShowOpenDialog = false;
|
||||||
|
@ -1612,14 +1617,15 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (dlg) {
|
if (me._state.openDlg) {
|
||||||
this.isShowOpenDialog = true;
|
this.isShowOpenDialog = true;
|
||||||
this.loadMask && this.loadMask.hide();
|
this.loadMask && this.loadMask.hide();
|
||||||
this.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
this.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
||||||
dlg.show();
|
me._state.openDlg.show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -555,6 +555,9 @@ define([
|
||||||
if (this._isDocReady)
|
if (this._isDocReady)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (this._state.openDlg)
|
||||||
|
this._state.openDlg.close();
|
||||||
|
|
||||||
var me = this,
|
var me = this,
|
||||||
value;
|
value;
|
||||||
|
|
||||||
|
@ -1420,10 +1423,12 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdvancedOptions: function(advOptions) {
|
onAdvancedOptions: function(advOptions) {
|
||||||
|
if (this._state.openDlg) return;
|
||||||
|
|
||||||
var type = advOptions.asc_getOptionId(),
|
var type = advOptions.asc_getOptionId(),
|
||||||
me = this, dlg;
|
me = this;
|
||||||
if (type == Asc.c_oAscAdvancedOptionsID.CSV) {
|
if (type == Asc.c_oAscAdvancedOptionsID.CSV) {
|
||||||
dlg = new Common.Views.OpenDialog({
|
me._state.openDlg = new Common.Views.OpenDialog({
|
||||||
type: type,
|
type: type,
|
||||||
codepages: advOptions.asc_getOptions().asc_getCodePages(),
|
codepages: advOptions.asc_getOptions().asc_getCodePages(),
|
||||||
settings: advOptions.asc_getOptions().asc_getRecommendedSettings(),
|
settings: advOptions.asc_getOptions().asc_getRecommendedSettings(),
|
||||||
|
@ -1433,10 +1438,11 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CCSVAdvancedOptions(encoding, delimiter, delimiterChar));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CCSVAdvancedOptions(encoding, delimiter, delimiterChar));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
||||||
dlg = new Common.Views.OpenDialog({
|
me._state.openDlg = new Common.Views.OpenDialog({
|
||||||
type: type,
|
type: type,
|
||||||
handler: function (value) {
|
handler: function (value) {
|
||||||
me.isShowOpenDialog = false;
|
me.isShowOpenDialog = false;
|
||||||
|
@ -1444,14 +1450,15 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (dlg) {
|
if (me._state.openDlg) {
|
||||||
this.isShowOpenDialog = true;
|
this.isShowOpenDialog = true;
|
||||||
this.loadMask && this.loadMask.hide();
|
this.loadMask && this.loadMask.hide();
|
||||||
this.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
this.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
||||||
dlg.show();
|
me._state.openDlg.show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue