From 799cad08b1c13c2bef93b02a0add14c09a092158 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 7 Mar 2018 13:24:24 +0530 Subject: [PATCH 1/3] fix section lookup --- static/js/folderList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/folderList.js b/static/js/folderList.js index 85e5cad8..1fcb9cc2 100644 --- a/static/js/folderList.js +++ b/static/js/folderList.js @@ -2,7 +2,7 @@ 'use strict'; pandora.ui.folderList = function(id, section) { - section = section || pandora.user.section; + section = section || pandora.user.ui.section; var ui = pandora.user.ui, i = Ox.getIndexById(pandora.site.sectionFolders[section], id), folderItems = pandora.getFolderItems(section), From 812959a8c1441a9959052a0bdef0cdacca9b47ff Mon Sep 17 00:00:00 2001 From: j Date: Wed, 7 Mar 2018 13:24:33 +0530 Subject: [PATCH 2/3] space --- static/js/leftPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/leftPanel.js b/static/js/leftPanel.js index 24275f93..417e727b 100644 --- a/static/js/leftPanel.js +++ b/static/js/leftPanel.js @@ -38,7 +38,7 @@ pandora.ui.leftPanel = function(section) { pandora.$ui.leftPanel.size(2, infoHeight); !pandora.user.ui.showInfo && pandora.$ui.leftPanel.css({bottom: -infoHeight + 'px'}); pandora.resizeFolders(); - pandora.$ui.info.resizeInfo(); + pandora.$ui.info.resizeInfo(); }, resizeend: function(data) { // set to 0 so that UI.set registers a change of the value From 9b8b6a17446c895d51a279a70dbd233c747468e0 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 7 Mar 2018 13:24:46 +0530 Subject: [PATCH 3/3] focus editPanel --- static/js/editPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 0001e4e6..b6793545 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -403,6 +403,7 @@ pandora.ui.editPanel = function(isEmbed) { pandora.$ui.mainPanel.replaceElement(1, that); updateSmallTimelineURL(); ui.edits[ui.edit].view == 'grid' && enableDragAndDrop(); + that.gainFocus(); } function renderEdits() {