[SSE] Bug 43859
This commit is contained in:
parent
93ba695883
commit
45316abe9d
|
@ -250,10 +250,8 @@ define([
|
||||||
props: props,
|
props: props,
|
||||||
api: me.api,
|
api: me.api,
|
||||||
handler: function (result, settings) {
|
handler: function (result, settings) {
|
||||||
if (result == 'ok') {
|
if (me && me.api) {
|
||||||
if (me && me.api) {
|
me.api.asc_setSortProps(settings, result != 'ok');
|
||||||
me.api.asc_setSortProps(settings);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})).show();
|
})).show();
|
||||||
|
|
|
@ -98,6 +98,10 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
|
||||||
this.sortOptions = {};
|
this.sortOptions = {};
|
||||||
|
|
||||||
this.options.handler = function(result, value) {
|
this.options.handler = function(result, value) {
|
||||||
|
if (!value) {
|
||||||
|
value = new Asc.CSortProperties();
|
||||||
|
value.asc_setSelection(options.props.asc_getSelection());
|
||||||
|
}
|
||||||
if ( result != 'ok' || this.isListValid() ) {
|
if ( result != 'ok' || this.isListValid() ) {
|
||||||
if (options.handler)
|
if (options.handler)
|
||||||
options.handler.call(this, result, value);
|
options.handler.call(this, result, value);
|
||||||
|
@ -593,6 +597,7 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
props.asc_setLevels(arr);
|
props.asc_setLevels(arr);
|
||||||
|
props.asc_setSelection(this.props.asc_getSelection());
|
||||||
return props;
|
return props;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue