X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ddfd0025304ea7087fdd2a4e06893a6f998b9f19..36387dac2e103ca656be9dc65fabb936f80191d1:/project/static/js/models.js 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); } });