mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Remember raw tag editor expansion state across sessions (fixes #2416)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user