diff options
author | Byron Jones <glob@mozilla.com> | 2015-10-12 06:56:46 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-10-12 06:56:46 +0200 |
commit | bb7cbda33555735d17c41d2b9bdd54359dad2d94 (patch) | |
tree | a26287c6e48f3b5c00fac515dd2f832bbd23d085 /extensions/BugModal/template | |
parent | c2364b357634e07c1b709c5cb120181ae3bc5e65 (diff) | |
download | bugzilla-bb7cbda33555735d17c41d2b9bdd54359dad2d94.tar.gz bugzilla-bb7cbda33555735d17c41d2b9bdd54359dad2d94.tar.xz |
Bug 1149899 - Remember expanded/collapsed sections
Diffstat (limited to 'extensions/BugModal/template')
3 files changed, 9 insertions, 1 deletions
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 === %] + +<script> + init_module_visibility(); +</script> + [%# === 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" %] |