Skip to content
Browse files

fixed: more escaping on #1051

  • Loading branch information...
1 parent 8657695 commit 955443e3298f511d8f0628d01f25baa77d46f7e6 @conrado conrado committed
View
4 cms/templates/admin/cms/page/change_list.html
@@ -55,12 +55,12 @@
$("#changelist-filter").toggle();
}
moveSuccess = function(node){
- var msg = $('<span class="success">{% trans "Successfully moved" %}</span>');
+ var msg = $('<span class="success">{% javascript_string %}{% trans "Successfully moved" %}{% end_javascript_string %}</span>');
node.append(msg);
msg.fadeOut(3000);
}
moveError = function(node){
- var msg = $("<span class=\"success\">{% trans "An error occured. Please reload the page" %}</span>");
+ var msg = $('<span class="success">{% javascript_string %}{% trans "An error occured. Please reload the page" %}{% end_javascript_string %}</span>");
node.append(msg);
}
// some settings used by javascript functions
View
4 cms/templates/admin/cms/page/plugin_forms_ok.html
@@ -18,7 +18,7 @@
if(window.parent != self) {
if (typeof window.parent.CMS === 'undefined'){
// backend admin
- parent.hide_iframe({{ plugin.pk }}, "{{ type }}", "{{ name }}", "{% trans "Plugin saved successfully." %}");
+ parent.hide_iframe({{ plugin.pk }}, "{{ type }}", "{{ name }}", "{% javascript_string %}{% trans "Plugin saved successfully." %}{% end_javascript_string %}");
} else {
// frontend edit
setTimeout(function () { window.parent.CMS.API.Helpers.reloadBrowser(); }, 1000);
@@ -29,4 +29,4 @@
});
//]]>
</script>
-{% endblock %}
+{% endblock %}

0 comments on commit 955443e

Please sign in to comment.
Something went wrong with that request. Please try again.