aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/scripts3.js21
-rw-r--r--web/style3.css10
2 files changed, 15 insertions, 16 deletions
diff --git a/web/scripts3.js b/web/scripts3.js
index 9b16e33a..3517ee56 100644
--- a/web/scripts3.js
+++ b/web/scripts3.js
@@ -339,21 +339,14 @@ function showPM(uname) {
currentPMUser=uname;
-/*
- var toppanel=$('#toppanel');
- toppanel.css("display","block");
- toppanel.html("<h1>"+uname+"</h1>");
-
- var bottompanel=$('#bottompanel');
- bottompanel.html("<input type=\"text\" name=\"reply\" id=\"replypmtext\" onkeypress=\"sendPMformListener(this.form,event)\"/><input type=\"button\" value=\">\" id=\"replypmbutton\" onclick=\"return sendPM()\"/>");
- bottompanel.css("display","block");
-*/
+ var sendform=$('<div id="pmreplyform"><input type="text" name="reply" id="pmreplytext" onkeypress="sendPMformListener(this.form,event)"/><input type="button" value=">" id="pmreplybutton" onclick="return sendPM()"/>');
var content=$('#content');
content.empty();
content.append(ul);
+ content.append(sendform);
$(window).scrollTop($(document).height());
- //$('#replypmtext').focus();
+ $('#pmreplytext').focus();
});
return false;
}
@@ -365,8 +358,8 @@ function sendPMformListener(formEl,ev) {
}
function sendPM() {
- var replypmtext=$('#replypmtext');
- var replypmbutton=$('#replypmbutton');
+ var replypmtext=$('#pmreplytext');
+ var replypmbutton=$('#pmreplybutton');
replypmtext.prop('disabled', true);
replypmbutton.prop('disabled', true);
@@ -804,7 +797,9 @@ jQuery.fn.selectText = function(){
/******************************************************************************/
$(document).ready(function() {
- initPMUList();
+ if(typeof lastConversations != 'undefined') {
+ initPMUList();
+ }
var tareply=$('textarea.reply');
tareply.autoResize({
diff --git a/web/style3.css b/web/style3.css
index 211c759c..1a2c15c1 100644
--- a/web/style3.css
+++ b/web/style3.css
@@ -9,11 +9,11 @@ hr { height: 1px; background: #CCC; margin: 10px 0; }
pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; }
.u { text-decoration: underline; }
-#header { width: 880px; }
-#topwrapper { width: 860px; }
+#header { width: 890px; }
+#topwrapper { width: 870px; }
#content, #footer { width: 600px; }
#header, #topwrapper, #footer { margin: 0 auto; }
-#content { margin: 15px 0 0 260px; }
+#content { margin: 15px 0 0 270px; }
/********/
@@ -97,6 +97,10 @@ blockquote { border-left: 1px dashed #CCC; margin: 10px 0 10px 10px; padding-lef
.pm-in { width: 85%; background: #FFF; }
.pm-out { margin-left: 15%; background: #DFD; }
+#pmreplyform { margin-top: 20px; background: #DDDDD5; padding: 5px 0; text-align: center; }
+#pmreplytext { border: 1px solid #999; padding: 4px 5px; width: 515px; margin: 15px 5px 15px 0; }
+#pmreplybutton { border: 1px solid #999; padding: 3px 0; width: 35px; background: #CCCCC5}
+
/********/
#column { width: 230px; top: 0; padding-top: 10px; overflow: hidden; }