From 771547cd05b0266e4e0cf5682bb0e350f931a3bd Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 12 Nov 2015 12:34:38 +0800 Subject: Bug 1223669 - don't scroll to the top of the page when clicking on the resolution buttons --- extensions/BugModal/template/en/default/bug_modal/field.html.tmpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extensions/BugModal/template/en/default/bug_modal/field.html.tmpl') diff --git a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl index bbc7dbb00..b31052d36 100644 --- a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl @@ -14,6 +14,8 @@ # view_only: (boolean) don't allow editing (default: determined from bug.check_can_change_field) # edit_only: (boolean) always render the edit ui # container: (boolean) output just a label and the content (eg. for multiple fields next to one label) + # name: (string) field name (default: field.name) + # prefix: (string) string to prepend to 'name' and 'id' attributes (default: empty) # value: (string) visible value (default: bug.$name) # values: (array of string) list of value objects (FIELD_TYPE_SINGLE_SELECT and _BUG_URLS only) (default: lazy-load on edit) # inline: (boolean) output field as a table-cell instead of as a stand-alone div (default: false) @@ -64,6 +66,9 @@ END; IF field_type == ""; field_type = -1; END; +IF prefix.defined; + name = prefix _ name; +END; # date picker fields should always be short IF field_type == constants.FIELD_TYPE_DATE || field_type == constants.FIELD_TYPE_DATETIME; -- cgit v1.2.3-24-g4f1b