Commit c87b7a0a authored by Leigh B Stoller's avatar Leigh B Stoller

Don't go negative on the Extend modal character count.

parent d9dae9e2
......@@ -123,6 +123,9 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
$('#why_extend').on('focus keyup', function (e) {
var len = $('#why_extend').val().length;
var left = 120 - len;
if (left < 0) {
left = 0;
}
var msg = "You need at least " + left + " more characters";
$('#extend_counter_msg').html(msg);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment