Diff of /branches/2.5.4/cgi-bin/yabb2/Sources/PostBox.pm [r1077] .. [r1078]  Maximize  Restore

Switch to side-by-side view

--- a/branches/2.5.4/cgi-bin/yabb2/Sources/PostBox.pm
+++ b/branches/2.5.4/cgi-bin/yabb2/Sources/PostBox.pm
@@ -17,7 +17,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.5.4';
 
-$postboxpmver = 'YaBB 2.5.4 $Revision: 1060 $';
+$postboxpmver = 'YaBB 2.5.4 $Revision: 1078 $';
 if ( defined $actions && $action eq 'detailedversion' ) { return 1; }
 
 #InstantMessage.pm and Post.pl use the same code for the posting box - why have two copies? #
@@ -851,7 +851,7 @@
     if ( $my_ajxcall eq 'ajxmessage' ) {
         $x .= qq~
     var tmusername = encodeURIComponent('$displayname');
-    var sessvalue = encodeURIComponent(document.postmodify.formsession.value);
+    sessvalue = encodeURIComponent(document.postmodify.formsession.value);
     var parameters = "subject="+subjvalue+"&message="+messvalue+"&musername="+tmusername+"&nschecked="+nscheck+"&formsession="+sessvalue+"&guestname="+namevalue;
     pstHttp.open("POST", url, true);
     pstHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
@@ -900,8 +900,8 @@
     }
 
     var tmp_array = new Array ();
-    for (var i = 0; i < liveimg_resize_names.length; i++) {
-        var tmp_image_name = liveimg_resize_names[i];
+    for ( i = 0; i < liveimg_resize_names.length; i++) {
+        tmp_image_name = liveimg_resize_names[i];
 
         if (fix_size) {
             if (maxwidth)  document.images[tmp_image_name].width  = maxwidth;