fix js error

This commit is contained in:
laf
2016-07-01 18:00:07 +01:00
parent 0991fbd67d
commit 3d77d1b77c

View File

@@ -83,7 +83,7 @@
if (data.status == 'ok') {
$this.closest('.form-group').addClass('has-success');
$this.next().addClass('glyphicon-ok');
var new_val = speed.text().replace(/[^0-9]/gi, '');
var new_val = speed.replace(/[^0-9]/gi, '');
$this.val(new_val);
setTimeout(function(){
$this.closest('.form-group').removeClass('has-success');