From 82d7f85bdb2af6bc526675c4725b521d26ed219d Mon Sep 17 00:00:00 2001 From: j Date: Tue, 12 Feb 2019 13:36:31 +0530 Subject: [PATCH] go back to current list --- static/js/folders.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/static/js/folders.js b/static/js/folders.js index b96e9c7..9e8718e 100644 --- a/static/js/folders.js +++ b/static/js/folders.js @@ -111,6 +111,11 @@ oml.ui.folders = function() { oml.UI.set({find: getFind('')}); oml.$ui.librariesList.options({selected: ['']}); }, + singleclick: function(data) { + oml.UI.set({ + find: getFind('') + }); + }, selectnext: function() { oml.UI.set(Ox.extend( {find: getFind(':')}, @@ -201,7 +206,14 @@ oml.ui.folders = function() { !index && oml.addList(); }, 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() { oml.UI.set({find: getFind(inboxId)}); @@ -290,6 +302,11 @@ oml.ui.folders = function() { open: function(data) { !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) { oml.UI.set({find: getFind(data.ids[0])}); },