[SSE][PE] Fix list settings

This commit is contained in:
Julia Radzhabova 2020-06-25 13:52:14 +03:00
parent 8013708f03
commit baa4065363
2 changed files with 7 additions and 2 deletions

View file

@ -366,7 +366,7 @@ define([
_handleInput: function(state) {
if (this.options.handler) {
var listtype = (this.type==0) ? this.cmbBulletFormat.getValue() : this.cmbNumFormat.getValue();
this.options.handler.call(this, state, (listtype==-1) ? null : this._changedProps);
this.options.handler.call(this, state, (listtype==-1) ? -1 : this._changedProps);
}
this.close();
},

View file

@ -1141,7 +1141,12 @@ define([
handler: function(result, value) {
if (result == 'ok') {
if (me.api) {
me.api.paraApply(value);
if (value==-1)
me.api.put_ListType(0, -1);
else {
props.asc_putBullet(value);
me.api.paraApply(props);
}
}
}
Common.NotificationCenter.trigger('edit:complete', me.toolbar);