From bcfdd5dd425840ced4f775d7318fd5332628c901 Mon Sep 17 00:00:00 2001 From: Abhijeet Date: Fri, 4 Nov 2016 11:33:51 -0500 Subject: [PATCH] fixed the issue where organization dropdown error not clearing on account registration page enabled jquery validation --- crisischeckin/crisicheckinweb/App_Start/BundleConfig.cs | 3 +++ crisischeckin/crisicheckinweb/Views/Account/Register.cshtml | 5 ++++- crisischeckin/crisicheckinweb/Web.config | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/crisischeckin/crisicheckinweb/App_Start/BundleConfig.cs b/crisischeckin/crisicheckinweb/App_Start/BundleConfig.cs index 31b62c44..5aa8e005 100644 --- a/crisischeckin/crisicheckinweb/App_Start/BundleConfig.cs +++ b/crisischeckin/crisicheckinweb/App_Start/BundleConfig.cs @@ -21,6 +21,9 @@ public static void RegisterBundles(BundleCollection bundles) "~/Scripts/jquery-ui-1.10.4.js", "~/Scripts/bootstrap.js")); + bundles.Add(new ScriptBundle("~/bundles/jquery-validate").Include( + "~/Scripts/jquery.validate.min.js", + "~/Scripts/jquery.validate.unobtrusive.min.js")); } } } \ No newline at end of file diff --git a/crisischeckin/crisicheckinweb/Views/Account/Register.cshtml b/crisischeckin/crisicheckinweb/Views/Account/Register.cshtml index b2cb3ab0..27a2b046 100644 --- a/crisischeckin/crisicheckinweb/Views/Account/Register.cshtml +++ b/crisischeckin/crisicheckinweb/Views/Account/Register.cshtml @@ -1,4 +1,6 @@ -@model crisicheckinweb.ViewModels.RegisterModel +@using System.Web.Optimization + +@model crisicheckinweb.ViewModels.RegisterModel @{ ViewBag.Title = "Create new account..."; @@ -63,5 +65,6 @@ @section scripts { + @Scripts.Render("~/bundles/jquery-validate") } \ No newline at end of file diff --git a/crisischeckin/crisicheckinweb/Web.config b/crisischeckin/crisicheckinweb/Web.config index 937e1079..65f68173 100644 --- a/crisischeckin/crisicheckinweb/Web.config +++ b/crisischeckin/crisicheckinweb/Web.config @@ -36,6 +36,8 @@ + +