+horizon (2014.1-2) unstable; urgency=medium
+
+ * Added Use_escapejs_filter_on_JavaScript_strings.patch.
+
+ -- Thomas Goirand <zigo@debian.org> Wed, 21 May 2014 08:42:42 +0800
+
horizon (2014.1-1) unstable; urgency=medium
* New upstream release.
--- /dev/null
+From: Adrien Cunin <adrien.cunin@osones.com>
+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 @@
+ </div>
+
+ <script type="text/javascript" charset="utf-8">
+- some_disabled_msg = '{{_("Some flavors not meeting minimum image requirements have been disabled.")}}';
+- all_disabled_msg = '{{_("No flavors meet minimum criteria for selected image.")}})';
++ some_disabled_msg = '{{_("Some flavors not meeting minimum image requirements have been disabled.")|escapejs}}';
++ all_disabled_msg = '{{_("No flavors meet minimum criteria for selected image.")|escapejs}}';
+
+ if(typeof horizon.Quota !== 'undefined') {
+ horizon.Quota.initWithFlavors({{ flavors|safe|default:"{}" }});