You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/06 11:17:23 UTC

[incubator-ponymail-foal] 02/02: fix scope of variable, so it's accessible in later evals

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 5b802b791ef076decb4381326f99c39e10fbf02f
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 6 13:17:11 2020 +0200

    fix scope of variable, so it's accessible in later evals
---
 webui/js/ponymail.js               | 4 ++--
 webui/js/source/listview-header.js | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index c845346..a9528ba 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -2055,6 +2055,7 @@ function listview_header(state, json) {
 
 function listview_list_lists(state, json) {
     let lists = document.getElementById('list_picker_ul');
+    let searching = (state && state.search === true) ? true : false;
     if (state && state.to) {
         let tab = undefined;
         let tabs = lists.childNodes;
@@ -2075,8 +2076,7 @@ function listview_list_lists(state, json) {
     }
     if (lists) {
     	lists.innerHTML = "";
-    
-	    let searching = (state && state.search === true) ? true : false;
+
     	if (isHash(json.lists) && json.lists[current_domain]) {
         	lists_sorted = [];
         	for (var list in json.lists[current_domain]) {
diff --git a/webui/js/source/listview-header.js b/webui/js/source/listview-header.js
index abab30c..80fe9fb 100644
--- a/webui/js/source/listview-header.js
+++ b/webui/js/source/listview-header.js
@@ -77,6 +77,7 @@ function listview_header(state, json) {
 
 function listview_list_lists(state, json) {
     let lists = document.getElementById('list_picker_ul');
+    let searching = (state && state.search === true) ? true : false;
     if (state && state.to) {
         let tab = undefined;
         let tabs = lists.childNodes;
@@ -97,8 +98,7 @@ function listview_list_lists(state, json) {
     }
     if (lists) {
     	lists.innerHTML = "";
-    
-	    let searching = (state && state.search === true) ? true : false;
+
     	if (isHash(json.lists) && json.lists[current_domain]) {
         	lists_sorted = [];
         	for (var list in json.lists[current_domain]) {