aboutsummaryrefslogtreecommitdiff
path: root/web/scripts3.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/scripts3.js')
-rw-r--r--web/scripts3.js4
1 files changed, 4 insertions, 0 deletions
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("<a href=\"//i.juick.com/photos-1024/"+fname+"\"><img src=\"//i.juick.com/photos-512/"+fname+"\"/></a>");
+ $('#dialogw img').css('max-height',height+'px');
return false;
} else {
openDialog("<a href=\"//i.juick.com/p/"+fname+"\"><img src=\"//i.juick.com/photos-1024/"+fname+"\"/></a>");
+ $('#dialogw img').css('max-height',height+'px');
return false;
}
}