users can no longer add repeating spaces to get around the minimum comment length.
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@409
0cfe37f9-358a-4d5e-be75-
b63607b5c754
cleanup_form();\r
\r
function process_form_changes() {\r
cleanup_form();\r
\r
function process_form_changes() {\r
- var length = $textarea.val().length;\r
+ var length = $textarea.val().replace(/[ ]{2,}/g," ").length;\r
\r
if (current_length == length)\r
return;\r
\r
if (current_length == length)\r
return;\r
$chars_togo_message.show();\r
$chars_counter.html(min_length - length);\r
} else {\r
$chars_togo_message.show();\r
$chars_counter.html(min_length - length);\r
} else {\r
+ length = $textarea.val().length;\r
$chars_togo_message.hide();\r
$chars_left_message.show();\r
$chars_counter.html(max_length - length);\r
$chars_togo_message.hide();\r
$chars_left_message.show();\r
$chars_counter.html(max_length - length);\r