From afe7ff2701d4940a0413557ff03379779c47750c Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Mon, 17 Mar 2014 07:03:13 +0700 Subject: Page width 1024px; small improvements --- web/scripts3.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/scripts3.js') diff --git a/web/scripts3.js b/web/scripts3.js index 626c4020..bf283594 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -54,6 +54,7 @@ function postformListener(formEl,ev) { function unfoldPostForm() { if(window.location.pathname==="/" && window.location.hash==="#post") { $('#newmessage>div').css('display','block'); + $('#newmessage textarea').css('min-height','70px'); $('#newmessage textarea')[0].focus(); } } @@ -169,13 +170,16 @@ function showMessageLinksDialog(mid,rid) { function showPhotoDialog(fname) { var width=$(window).width(); + var height=$(window).height()*0.9; if(width<640) { return true; } else if(width<1280) { openDialog(""); + $('#dialogw img').css('max-height',height+'px'); return false; } else { openDialog(""); + $('#dialogw img').css('max-height',height+'px'); return false; } } -- cgit v1.2.3