From 8e951c33467b31c53e7df053749695457cbbbc17 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 23 Jan 2015 15:13:38 +0000 Subject: [PATCH] Fix expose view always shows the first picture of the list without respect to the selected one --- etemplate/js/expose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/expose.js b/etemplate/js/expose.js index f1c2441ef1..2532890a69 100644 --- a/etemplate/js/expose.js +++ b/etemplate/js/expose.js @@ -392,7 +392,7 @@ function expose (widget) // But before it goes, we'll pull everything we can read_from_nextmatch.call(this, nm, mediaContent); // find current_entry in array and set it's array-index - for(var i; i < mediaContent.length; i++) + for(var i=0; i < mediaContent.length; i++) { if ('filemanager::'+mediaContent[i].path == current_entry.uid) {