diff options
author | Byron Jones <glob@mozilla.com> | 2015-11-12 05:34:38 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-11-12 05:34:38 +0100 |
commit | 771547cd05b0266e4e0cf5682bb0e350f931a3bd (patch) | |
tree | 25fefa6ab151846c5ab16e4bfef667b69ade06a9 /extensions/BugModal/template/en/default/bug_modal/field.html.tmpl | |
parent | b4bfae7e1ece8c214e173865b1600c1f2ec11c9c (diff) | |
download | bugzilla-771547cd05b0266e4e0cf5682bb0e350f931a3bd.tar.gz bugzilla-771547cd05b0266e4e0cf5682bb0e350f931a3bd.tar.xz |
Bug 1223669 - don't scroll to the top of the page when clicking on the resolution buttons
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/field.html.tmpl')
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/field.html.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
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; |