]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/richtext.js
Remove unused stylesheet rules
[rails.git] / app / assets / javascripts / richtext.js
index 474c0806968efb442642dd99969bc58bf4564e3c..78a9d452f92d8d2465594434bb520bb4fb9973c6 100644 (file)
@@ -49,7 +49,7 @@ $(document).ready(function () {
         preview.addClass("loading");
       });
 
-      preview.load(editor.attr("data-preview-url"), { text: editor.val() }, function () {
+      preview.load(editor.data("previewUrl"), { text: editor.val() }, function () {
         preview.stopTime("loading");
         preview.removeClass("loading");
       });