Changeset 41

Show
Ignore:
Timestamp:
10/31/06 02:18:46 (14 years ago)
Author:
exi
Message:

Changed the Comments-lettercounter to a span-text instead of a form-input to avoid the gecko input-size renderbug.

Location:
dev/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/common/comments.php

    r39 r41  
    7878 
    7979$html .= "<div><form id=\"postform\" name=\"postform\" method=\"post\" action=\"?a=kill_detail&kll_id=".$kill->getID()."\">"; 
    80 $html .= "<br><b>Add Comment:</b><br><textarea class=\"comment\" name=\"comment\" cols=\"55\" rows=\"5\" wrap=\"PHYSICAL\" onKeypress=\"limitText(this.form.comment,this.form.countdown,200);\"></textarea><br>"; 
    81 $html .= "<input readonly type=\"text\" name=\"countdown\" id=\"countdown\" size=\"1\" value=\"200\">Letters left<br/>"; 
     80$html .= "<br><b>Add Comment:</b><br><textarea class=\"comment\" name=\"comment\" cols=\"55\" rows=\"5\" wrap=\"PHYSICAL\" onkeyup=\"limitText(this.form.comment,document.getElementById('countdown'),200);\" onkeypress=\"limitText(this.form.comment,document.getElementById('countdown'),200);\"></textarea><br>"; 
     81$html .= "<span name=\"countdown\" id=\"countdown\">200</span> Letters left<br/>"; 
    8282$html .= "<b>Name:</b>"; 
    8383$html .= "<input style=\"position:relative; right:-3px;\" class=\"comment-button\" name=\"name\" type=\"text\" size=\"24\" maxlength=\"24\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; 
  • dev/common/generic.js

    r16 r41  
    2222    { 
    2323                limitField.value = limitField.value.substring(0, limitNum); 
     24                limitCount.innerHTML = "0"; 
    2425        } 
    2526    else 
    2627    { 
    27                 limitCount.value = limitNum - limitField.value.length; 
     28                limitCount.innerHTML = limitNum - limitField.value.length; 
    2829        } 
    2930}