From d91993206614320bfea5b72b0a486b0adb9b965a Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Thu, 24 Oct 2013 21:10:51 +0700 Subject: PM reply form; bugfixes. --- web/scripts3.js | 21 ++++++++------------- web/style3.css | 10 +++++++--- 2 files changed, 15 insertions(+), 16 deletions(-) (limited to 'web') 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("

"+uname+"

"); - - var bottompanel=$('#bottompanel'); - bottompanel.html("\" id=\"replypmbutton\" onclick=\"return sendPM()\"/>"); - bottompanel.css("display","block"); -*/ + var sendform=$('
'); 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; } -- cgit v1.2.3