From: Thomas Goirand Date: Wed, 21 May 2014 00:43:00 +0000 (+0800) Subject: Added: Use_escapejs_filter_on_JavaScript_strings.patch X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a4909c10176b068b943b23ea4b7ec0ab372c38b8;p=openstack-build%2Fhorizon-build.git Added: Use_escapejs_filter_on_JavaScript_strings.patch Rewritten-From: 214fc669356cb15fce5e8600bf8d534c3829c90b --- diff --git a/xenial/debian/changelog b/xenial/debian/changelog index 3b21241..66ec670 100644 --- a/xenial/debian/changelog +++ b/xenial/debian/changelog @@ -1,3 +1,9 @@ +horizon (2014.1-2) unstable; urgency=medium + + * Added Use_escapejs_filter_on_JavaScript_strings.patch. + + -- Thomas Goirand Wed, 21 May 2014 08:42:42 +0800 + horizon (2014.1-1) unstable; urgency=medium * New upstream release. diff --git a/xenial/debian/patches/Use_escapejs_filter_on_JavaScript_strings.patch b/xenial/debian/patches/Use_escapejs_filter_on_JavaScript_strings.patch new file mode 100644 index 0000000..dc000b0 --- /dev/null +++ b/xenial/debian/patches/Use_escapejs_filter_on_JavaScript_strings.patch @@ -0,0 +1,33 @@ +From: Adrien Cunin +Date: Tue, 22 Apr 2014 10:54:33 +0000 (+0200) +Subject: Use escapejs filter on JavaScript strings +X-Git-Url: https://review.openstack.org/gitweb?p=openstack%2Fhorizon.git;a=commitdiff_plain;h=232b71286f3b1426412a3ffbed5d7065c2e24275 + +Use escapejs filter on JavaScript strings + +The escapejs filter will correctly escape single quotes from JavaScript +strings which may otherwise trigger syntax errors. In this case, the +issue was visible using the French translation. + +Also removed a trailing paranthesis coming out of nowhere. + +Change-Id: I25001815e17be5afa8eb28cc28c5423e3dcd973c +Closes-Bug: #1311047 +(cherry picked from commit bc6f40b51d53682054cc4ba28b55b5045d6c8605) +--- + +diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html +index 9abfc82..5cb2c55 100644 +--- a/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html ++++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html +@@ -40,8 +40,8 @@ + + +