From 1f0bfcd35524eab2150d37365203695b50f93d83 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 28 Oct 2018 11:40:34 -0600 Subject: added an override for weird max height setting in django admin responsive css --- app/utils/static/image-loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/utils/static') diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js index c23cb80..121c3be 100644 --- a/app/utils/static/image-loader.js +++ b/app/utils/static/image-loader.js @@ -41,7 +41,7 @@ function add_images(){ } document.addEventListener("DOMContentLoaded", function(event) { add_images(); - md = document.textarea["body_markdown"] - md.style.maxHeight = "300rem" - md.style.maxWidth = "300rem" + md = document.forms["entry_form"].elements["body_markdown"]; + md.style.maxHeight = "300rem"; + md.style.maxWidth = "300rem"; }); -- cgit v1.2.3-70-g09d2