From bd04be26c697600e206f99572d5bc8b9881d6b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Mon, 29 May 2017 17:48:34 +0200 Subject: [PATCH] Remember that the content was narrow before Steps to reproduce bug: ---------------------- 1. View page with narrow content 2. Edit page --> wide content (this is correct) 3. Cancel/Save 4. Page has now wide content, but should have narrow content Fix --- Only remember width of content when we are view a page, i.e. `do=show` SPR-982 --- js/sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sidebar.js b/js/sidebar.js index 48c3874..09f9206 100644 --- a/js/sidebar.js +++ b/js/sidebar.js @@ -270,7 +270,7 @@ jQuery(function () { setActive(stModes,$siteTools); setActive(utModes,$userTools); - if($body.is('.wide-content')) { + if($body.is('.do-show') && $body.is('.wide-content')) { window.sessionStorage.setItem('wide-content', true); isWideContent = true; }