Quote escape dla tooltipĆ³w.
[redakcja.git] / project / static / js / models.js
index c03aa1e..ab021f5 100644 (file)
@@ -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);
     }
 });