X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/56db9ca2b7e2475cd8025630049fb4a4b824f2d9..5e27978d3cd55b267f0222d51d9e8efa26e389e9:/app/assets/javascripts/richtext.js diff --git a/app/assets/javascripts/richtext.js b/app/assets/javascripts/richtext.js index 38cc2a77b..a5323bc07 100644 --- a/app/assets/javascripts/richtext.js +++ b/app/assets/javascripts/richtext.js @@ -44,7 +44,7 @@ $(document).ready(function () { var width = editor.outerWidth() - preview.outerWidth() + preview.width(); var minHeight = editor.outerHeight() - preview.outerHeight() + preview.height(); - if (preview.contents().length == 0) { + if (preview.contents().length === 0) { preview.oneTime(500, "loading", function () { preview.addClass("loading"); });