summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-09-25 19:01:12 +0200
committerByron Jones <bjones@mozilla.com>2012-09-25 19:01:12 +0200
commitb4c57eb52706fd61f3167dc05eccae1fd7c30513 (patch)
tree3bdfde89b1e735f968929c944940b419952bc229 /template
parent56189de68ab5effc1708ddf65f861842ed48d6ab (diff)
downloadbugzilla-b4c57eb52706fd61f3167dc05eccae1fd7c30513.tar.gz
bugzilla-b4c57eb52706fd61f3167dc05eccae1fd7c30513.tar.xz
Bug 437212: Make page refreshing under Firefox update fields
r=LpSolit, a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/edit.html.tmpl1
-rw-r--r--template/en/default/bug/field.html.tmpl1
-rw-r--r--template/en/default/bug/show-header.html.tmpl3
-rw-r--r--template/en/default/flag/list.html.tmpl1
4 files changed, 6 insertions, 0 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 23a11fc47..0d86f02fa 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -1102,6 +1102,7 @@
<td>
[% IF bug.check_can_change_field(selname, 0, 1)
AND bug.choices.${selname}.size > 1 %]
+ <input type="hidden" id="[% selname %]_dirty">
<select id="[% selname %]" name="[% selname %]">
[% FOREACH x = bug.choices.${selname} %]
[% NEXT IF NOT x.is_active AND x.name != bug.${selname} %]
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index 88a5adba8..4255b1702 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -82,6 +82,7 @@
</script>
[% CASE [ constants.FIELD_TYPE_SINGLE_SELECT
constants.FIELD_TYPE_MULTI_SELECT ] %]
+ <input type="hidden" id="[% field.name FILTER html %]_dirty">
<select id="[% field.name FILTER html %]"
name="[% field.name FILTER html %]"
[% IF field.type == constants.FIELD_TYPE_MULTI_SELECT %]
diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl
index 6d4e2d595..93ddc94f1 100644
--- a/template/en/default/bug/show-header.html.tmpl
+++ b/template/en/default/bug/show-header.html.tmpl
@@ -37,6 +37,9 @@
history.replaceState(null, "[% unfiltered_title FILTER js %]", href);
}
}
+ YAHOO.util.Event.onDOMReady(function() {
+ initDirtyFieldTracking();
+ });
[% javascript FILTER none %]
[% END %]
[% END %]
diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl
index 9eb6b4441..88486c7f6 100644
--- a/template/en/default/flag/list.html.tmpl
+++ b/template/en/default/flag/list.html.tmpl
@@ -107,6 +107,7 @@
[%- type.name FILTER html FILTER no_break -%]</label>
</td>
<td>
+ <input type="hidden" id="[% fid FILTER html %]_dirty">
<select id="[% fid FILTER html %]" name="[% fid FILTER html %]"
title="[% type.description FILTER html %]"
onchange="toggleRequesteeField(this);"