aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/zurich/admin/report_edit.html2
-rw-r--r--web/cobrands/zurich/js.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index ec65cf99f..f87dcb5cf 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -107,7 +107,7 @@
<dd>[% problem.get_time_spent %]</dd>
[% IF problem.photo %]
- <dd data-confirm="[% loc('Rotating this photo will discard unsaved changes to the report.') | html %]">
+ <dd data-confirm-msg="[% loc('Rotating this photo will discard unsaved changes to the report.') | html %]">
[% FOR photo IN problem.photos %]
<div class="update-img">
<a href="[% c.cobrand.base_url %][% photo.url_temp_full %]" rel="fancy">
diff --git a/web/cobrands/zurich/js.js b/web/cobrands/zurich/js.js
index d895789f1..f3977161c 100644
--- a/web/cobrands/zurich/js.js
+++ b/web/cobrands/zurich/js.js
@@ -122,7 +122,7 @@ $(function() {
// If the user has clicked to rotate a photo and has edited other
// fields, ask for confirmation before submitting the form
if (/rotate_photo/.test(clicked) && form_fields_changed) {
- var message = $(this).parent().data('confirm');
+ var message = $(this).find("input[name="+clicked+"]").parent().data('confirmMsg');
if (!confirm(message)) {
return false;
}