From bfe63cc69ff6dcf2f5613184830e26e1275e5c31 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 22 Jun 2017 22:28:25 +0300 Subject: www: fix css warnings --- juick-www/src/main/static/scripts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-www') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index ddcf7923..7c8b02b0 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -1,11 +1,11 @@ var autosize = function(t) { var offset = !window.opera ? (t.offsetHeight - t.clientHeight) - : (t.offsetHeight + parseInt(window.getComputedStyle(t, null).getPropertyValue('border-top-width'))) ; + : (t.offsetHeight + parseInt(window.getComputedStyle(t, null).getPropertyValue('border-top-width'))); var resize = function(t) { t.style.height = 'auto'; t.style.height = (t.scrollHeight + offset ) + 'px'; - } + }; t.addEventListener && t.addEventListener('input', function(event) { resize(t); @@ -14,7 +14,7 @@ var autosize = function(t) { t['attachEvent'] && t.attachEvent('onkeyup', function() { resize(t); }); -} +}; require('whatwg-fetch'); require('element-closest'); -- cgit v1.2.3