From b8a4cc913e8deafbe0fba4baff03f7f6e99f2c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Thu, 20 Apr 2017 15:50:53 +0200 Subject: [PATCH] Fix not correctly forgetting section-open state The sidebar is intended to close all sections when the content is wide and set their default back to closed. SPR-883 --- js/sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sidebar.js b/js/sidebar.js index 56bd928..b87ffc6 100644 --- a/js/sidebar.js +++ b/js/sidebar.js @@ -21,7 +21,7 @@ jQuery(function () { for (var index=0; index <= sessionStorage.length; index += 1) { var item = sessionStorage.getItem('sidebar-section-' + index + '-open'); if (!item) { - break; + continue; } sessionStorage.removeItem('sidebar-section-' + index + '-open'); }