import/lists/autocompleteFolder

This commit is contained in:
j 2014-05-19 01:24:04 +02:00
commit d6f350e5a1
42 changed files with 955 additions and 436 deletions

View file

@ -50,6 +50,14 @@ oml.ui.list = function() {
}
},
init: function(data) {
Ox.print('MAIN LIST INIT', data);
if (ui.find.conditions.length == 0 || (
ui.find.conditions.length == 1
&& ui.find.conditions[0].key == 'list'
&& ui.find.conditions[0].operator == '=='
)) {
oml.$ui.folders.updateItems(data.items);
}
oml.$ui.statusbar.set('total', data);
},
key_control_delete: function() {
@ -58,6 +66,15 @@ oml.ui.list = function() {
oml.ui.deleteItemsDialog().open();
}
},
key_shift_enter: function() {
var selected = that.options('selected');
if (selected.length) {
oml.UI.set({
item: selected[0],
itemView: 'book'
});
}
},
open: function(data) {
oml.UI.set({
item: data.ids[0],