From e6fd5ecc743aca70f7d36c475e46daada4110fa6 Mon Sep 17 00:00:00 2001 From: Toks Date: Wed, 13 May 2015 18:36:45 -0400 Subject: [PATCH] #1692 comment out infinite loops --- app/assets/javascripts/notes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index de4346039..d313443a3 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -226,13 +226,13 @@ Danbooru.Note = { var $image = $("#image"); var doc_width = $image.offset().left + $image.width(); - while ($note_body[0].clientHeight < $note_body[0].scrollHeight) { + /*while ($note_body[0].clientHeight < $note_body[0].scrollHeight) { $note_body.css({height: $note_body.height() + 5}); } while ($note_body[0].clientWidth < $note_body[0].scrollWidth) { $note_body.css({width: $note_body.width() + 5}); - } + }*/ if ($note_body.offset().left + $note_body.width() > doc_width) { $note_body.css({