Skip to content

Commit

Permalink
fixed: more escaping on django-cms#1051
Browse files Browse the repository at this point in the history
  • Loading branch information
conrado committed Oct 21, 2011
1 parent 8657695 commit 955443e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cms/templates/admin/cms/page/change_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cms/templates/admin/cms/page/plugin_forms_ok.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -29,4 +29,4 @@
});
//]]>
</script>
{% endblock %}
{% endblock %}

0 comments on commit 955443e

Please sign in to comment.