go back to current list

This commit is contained in:
j 2019-02-12 13:36:31 +05:30
parent 85e315be40
commit 82d7f85bdb

View file

@ -111,6 +111,11 @@ oml.ui.folders = function() {
oml.UI.set({find: getFind('')}); oml.UI.set({find: getFind('')});
oml.$ui.librariesList.options({selected: ['']}); oml.$ui.librariesList.options({selected: ['']});
}, },
singleclick: function(data) {
oml.UI.set({
find: getFind('')
});
},
selectnext: function() { selectnext: function() {
oml.UI.set(Ox.extend( oml.UI.set(Ox.extend(
{find: getFind(':')}, {find: getFind(':')},
@ -201,7 +206,14 @@ oml.ui.folders = function() {
!index && oml.addList(); !index && oml.addList();
}, },
select: function(data) { select: function(data) {
oml.UI.set({find: getFind(data.ids[0])}); oml.UI.set({
find: getFind(data.ids[0]),
});
},
singleclick: function(data) {
oml.UI.set({
find: getFind(oml.$ui.libraryList[index].options('selected')[0])
});
}, },
selectnext: function() { selectnext: function() {
oml.UI.set({find: getFind(inboxId)}); oml.UI.set({find: getFind(inboxId)});
@ -290,6 +302,11 @@ oml.ui.folders = function() {
open: function(data) { open: function(data) {
!index && !Ox.contains(data.ids, ':Inbox') && oml.ui.listDialog().open(); !index && !Ox.contains(data.ids, ':Inbox') && oml.ui.listDialog().open();
}, },
singleclick: function(data) {
oml.UI.set({
find: getFind(oml.$ui.folderList[index].options('selected')[0])
});
},
select: function(data) { select: function(data) {
oml.UI.set({find: getFind(data.ids[0])}); oml.UI.set({find: getFind(data.ids[0])});
}, },