X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ddfd0025304ea7087fdd2a4e06893a6f998b9f19..7f3f79476a57d10991566c511d40e20154c01064:/project/static/js/models.js?ds=inline diff --git a/project/static/js/models.js b/project/static/js/models.js index c03aa1e7..ab021f51 100644 --- a/project/static/js/models.js +++ b/project/static/js/models.js @@ -23,7 +23,15 @@ Editor.ToolbarButtonsModel = Editor.Model.extend({ } }, - loadSucceeded: function(data) { + loadSucceeded: function(data) + { + // do some escaping + $.each(data, function() { + $.each(this.buttons, function() { + //do some lame escapes + this.tooltip = this.tooltip.replace(/"/g, """); + }); + }); this.set('buttons', data); } });