X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ddfd0025304ea7087fdd2a4e06893a6f998b9f19..8fc231865e3917a21d19a0c11d9130c5dd838334:/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); } });