X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6671a934bf10ad202576d5ca0c1591cf2ef627f8..1596713871672cc319b0d68b51a3698cc6bf0972:/app/assets/javascripts/richtext.js?ds=sidebyside 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"); });