From 56027c51ba0c8f6c12092da758eab9084943c027 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Tue, 20 Jan 2015 23:21:50 +0530 Subject: [PATCH] Lose navigation panel state on pref save. There is no point of selectively preserving it. Signed-off-by: Madhura Jayaratne --- js/navigation.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index af470a9dd7..0e319bc315 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -359,11 +359,7 @@ $(function () { var storage = window.sessionStorage; // remove tree from storage if Navi_panel config form is submitted $(document).on('submit', 'form.config-form', function(event) { - if ($(this).attr('action').indexOf('form=Navi_panel') >= 0 || - $(this).attr('action').indexOf('form=Main_panel') >= 0 - ) { - storage.removeItem('navTree'); - } + storage.removeItem('navTree'); }); // Initialize if no previous state is defined if (typeof storage.navTree === 'undefined') {