From bb7cbda33555735d17c41d2b9bdd54359dad2d94 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 12 Oct 2015 12:56:46 +0800 Subject: Bug 1149899 - Remember expanded/collapsed sections --- extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl | 6 ++++++ extensions/BugModal/template/en/default/bug_modal/header.html.tmpl | 3 ++- .../en/default/hook/global/setting-descs-settings.none.tmpl | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'extensions/BugModal/template') diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index ddf37a26c..2663d5562 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -1015,6 +1015,12 @@ [% END %] [% END %] +[%# === initialise module visibility === %] + + + [%# === top (between modules and comments) actions === %] [% IF user.id %] diff --git a/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl index 7fdb2ed49..361b9ec9d 100644 --- a/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl @@ -99,7 +99,8 @@ can_tag: [% user.can_tag_comments ? "true" : "false" %], settings: { quote_replies: '[% user.settings.quote_replies.value FILTER js %]', - zoom_textareas: [% user.settings.zoom_textareas.value == "on" ? "true" : "false" %] + zoom_textareas: [% user.settings.zoom_textareas.value == "on" ? "true" : "false" %], + remember_collapsed: [% user.settings.ui_remember_collapsed.value == "on" ? "true" : "false" %] } }; [% IF user.id %] diff --git a/extensions/BugModal/template/en/default/hook/global/setting-descs-settings.none.tmpl b/extensions/BugModal/template/en/default/hook/global/setting-descs-settings.none.tmpl index 7214977bb..4ca9c3003 100644 --- a/extensions/BugModal/template/en/default/hook/global/setting-descs-settings.none.tmpl +++ b/extensions/BugModal/template/en/default/hook/global/setting-descs-settings.none.tmpl @@ -8,4 +8,5 @@ [% setting_descs.ui_experiments = "Use experimental user interface" + setting_descs.ui_remember_collapsed = "Remember visibility of header sections when viewing a bug" %] -- cgit v1.2.3-24-g4f1b