fix export UI

This commit is contained in:
rlx 2016-01-16 16:01:36 +05:30
parent 5a3b5e8593
commit 1d6e94d1a6

View file

@ -190,7 +190,10 @@ oml.ui.importExportDialog = function() {
.bindEvent({
click: function() {
if (this.options('title') == Ox._('Done')) {
$innerPanel.replaceElement(0, renderForm(data.activity));
$innerPanel.replaceElement(
data.activity == 'import' ? 0 : 1,
renderForm(data.activity)
);
} else {
oml.api[
data.activity == 'import' ? 'cancelImport' : 'cancelExport'
@ -253,6 +256,12 @@ oml.ui.importExportDialog = function() {
})
] : [
Ox.Input({
autocomplete: function(value, callback) {
oml.api.autocompleteFolder({path: value}, function(result) {
callback(result.data.items);
});
},
autocompleteSelect: true,
changeOnKeypress: true,
id: 'path',
label: 'Destination Path',
@ -329,7 +338,8 @@ oml.ui.importExportDialog = function() {
oml.getOwnListNames(),
data.list
);
$innerPanel.replaceElement(0,
$innerPanel.replaceElement(
selected == 'import' ? 0 : 1,
renderActivity({
activity: selected,
path: data.path,