From d56f9d434a39bb8096e0fb66f05a71e55b4c8490 Mon Sep 17 00:00:00 2001 From: changhuapeng Date: Thu, 14 Jan 2016 07:06:26 +0800 Subject: [PATCH] Update bootstrap.php Remove 'has-success' class for any fields that became invalid after previously validated successfully. --- resources/views/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/bootstrap.php b/resources/views/bootstrap.php index 1c6ee421..906332e7 100644 --- a/resources/views/bootstrap.php +++ b/resources/views/bootstrap.php @@ -15,7 +15,7 @@ } }, highlight: function(element) { - $(element).closest('.form-group').addClass('has-error'); // add the Bootstrap error class to the control group + $(element).closest('.form-group').removeClass('has-success').addClass('has-error'); // add the Bootstrap error class to the control group },