Commit 3e10981a authored by Robert Ricci's avatar Robert Ricci
Browse files

Use a proper alert for the "more characters" message

parent 8a7f29f2
......@@ -238,14 +238,17 @@ define(['underscore', 'js/quickvm_sup',
var left = minchars - len;
if (left <= 0) {
left = 0;
$('#extend_counter_alert').addClass("hidden");
EnableSubmitButton();
}
else if (left) {
msg = "You need at least " + left + " more characters";
$('#extend_counter_alert').removeClass("hidden");
DisableSubmitButton();
}
}
else {
$('#extend_counter_alert').removeClass("hidden");
DisableSubmitButton();
}
$('#extend_counter_msg').html(msg);
......
......@@ -88,9 +88,9 @@
<textarea id='why_extend'
class='form-control align-center-inline'
rows=5></textarea>
<span style="font:normal 11px sans-serif;color:#B00400;">
<div class="alert alert-danger hidden" role="alert" id="extend_counter_alert">
<span id='extend_counter_msg'>&nbsp</span>
</span>
</div>
</div> <!-- #why_extend_div -->
</div> <!-- /col -->
</div> <!-- /row -->
......
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