fix export UI
This commit is contained in:
parent
5a3b5e8593
commit
1d6e94d1a6
1 changed files with 12 additions and 2 deletions
|
@ -190,7 +190,10 @@ oml.ui.importExportDialog = function() {
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function() {
|
click: function() {
|
||||||
if (this.options('title') == Ox._('Done')) {
|
if (this.options('title') == Ox._('Done')) {
|
||||||
$innerPanel.replaceElement(0, renderForm(data.activity));
|
$innerPanel.replaceElement(
|
||||||
|
data.activity == 'import' ? 0 : 1,
|
||||||
|
renderForm(data.activity)
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
oml.api[
|
oml.api[
|
||||||
data.activity == 'import' ? 'cancelImport' : 'cancelExport'
|
data.activity == 'import' ? 'cancelImport' : 'cancelExport'
|
||||||
|
@ -253,6 +256,12 @@ oml.ui.importExportDialog = function() {
|
||||||
})
|
})
|
||||||
] : [
|
] : [
|
||||||
Ox.Input({
|
Ox.Input({
|
||||||
|
autocomplete: function(value, callback) {
|
||||||
|
oml.api.autocompleteFolder({path: value}, function(result) {
|
||||||
|
callback(result.data.items);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
autocompleteSelect: true,
|
||||||
changeOnKeypress: true,
|
changeOnKeypress: true,
|
||||||
id: 'path',
|
id: 'path',
|
||||||
label: 'Destination Path',
|
label: 'Destination Path',
|
||||||
|
@ -329,7 +338,8 @@ oml.ui.importExportDialog = function() {
|
||||||
oml.getOwnListNames(),
|
oml.getOwnListNames(),
|
||||||
data.list
|
data.list
|
||||||
);
|
);
|
||||||
$innerPanel.replaceElement(0,
|
$innerPanel.replaceElement(
|
||||||
|
selected == 'import' ? 0 : 1,
|
||||||
renderActivity({
|
renderActivity({
|
||||||
activity: selected,
|
activity: selected,
|
||||||
path: data.path,
|
path: data.path,
|
||||||
|
|
Loading…
Reference in a new issue