Remove validation error on valid input

This commit is contained in:
Raphael Michel
2017-06-16 23:21:49 +02:00
parent 8fa490c938
commit 5caff5d28e

View File

@@ -109,6 +109,7 @@ $(function () {
if (num != "") {
var url = $(this).attr("data-rng-url");
$("#id_codes").html("Generating...");
$(".form-group:has(#voucher-bulk-codes-num)").removeClass("has-error");
$.getJSON(url + '?num=' + num + '&prefix=' + escape(prefix), function (data) {
$("#id_codes").val(data.codes.join("\n"));
});