[DE] Fix Bug 47453

This commit is contained in:
Julia Radzhabova 2020-11-16 14:31:48 +03:00
parent 517e85d232
commit 7008060476

View file

@ -224,6 +224,10 @@ define([
allowDecimal: false, allowDecimal: false,
maskExp: /[0-9]/ maskExp: /[0-9]/
}); });
this.spnStart.on('change', function(field, newValue, oldValue, eOpts){
if (field.getNumberValue()>1 && me.cmbNumbering.getValue()!==Asc.c_oAscFootnoteRestart.Continuous)
me.cmbNumbering.setValue(Asc.c_oAscFootnoteRestart.Continuous);
});
this._arrNumbering = [ this._arrNumbering = [
{ displayValue: this.textContinue, value: Asc.c_oAscFootnoteRestart.Continuous }, { displayValue: this.textContinue, value: Asc.c_oAscFootnoteRestart.Continuous },
@ -238,6 +242,10 @@ define([
data: this._arrNumbering data: this._arrNumbering
}); });
this.cmbNumbering.setValue(Asc.c_oAscFootnoteRestart.Continuous); this.cmbNumbering.setValue(Asc.c_oAscFootnoteRestart.Continuous);
this.cmbNumbering.on('selected', function(combo, record){
if (record.value == Asc.c_oAscFootnoteRestart.EachSect || record.value == Asc.c_oAscFootnoteRestart.EachPage)
me.spnStart.setValue(1, true);
});
this.txtCustom = new Common.UI.InputField({ this.txtCustom = new Common.UI.InputField({
el : $('#note-settings-txt-custom'), el : $('#note-settings-txt-custom'),