From 0b1a54acca7f2ef33e8f75ab89a41d92f1da056d Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 22 Oct 2014 11:13:48 -0700 Subject: [PATCH] Remember raw tag editor expansion state across sessions (fixes #2416) --- js/id/ui/raw_tag_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/ui/raw_tag_editor.js b/js/id/ui/raw_tag_editor.js index 22b795bc3..f9c9de251 100644 --- a/js/id/ui/raw_tag_editor.js +++ b/js/id/ui/raw_tag_editor.js @@ -12,12 +12,12 @@ iD.ui.RawTagEditor = function(context) { selection.call(iD.ui.Disclosure() .title(t('inspector.all_tags') + ' (' + count + ')') - .expanded(iD.ui.RawTagEditor.expanded || preset.isFallback()) + .expanded(context.storage('raw_tag_editor.expanded') === 'true' || preset.isFallback()) .on('toggled', toggled) .content(content)); function toggled(expanded) { - iD.ui.RawTagEditor.expanded = expanded; + context.storage('raw_tag_editor.expanded', expanded); if (expanded) { selection.node().parentNode.scrollTop += 200; }