From 8f7f7193fdd20012d1c606b77a12c4933b7b4548 Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Tue, 15 Mar 2016 17:43:00 +0100 Subject: [PATCH] Build the albumMap even when the server returns a 403 The albumMap is used for navigation, so it's important to build it whenever the user enters the app --- js/gallery.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/gallery.js b/js/gallery.js index 44779f18b0..a5509c47ab 100644 --- a/js/gallery.js +++ b/js/gallery.js @@ -93,7 +93,9 @@ }, function (xhr) { var result = xhr.responseJSON; - Gallery.view.init(decodeURIComponent(currentLocation), result.message); + var albumPath = decodeURIComponent(currentLocation); + Gallery.view.init(albumPath, result.message); + Gallery._mapStructure(albumPath); }); },