From e1b9f9ef6ff396dd0dfd5b258a0cdc104280a0c5 Mon Sep 17 00:00:00 2001 From: mumana Date: Tue, 12 Jun 2018 21:39:39 +0000 Subject: [PATCH] Scripts git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C37 --- .../AYA.SlnSynor/App_Start/BundleConfig.cs | 28 +++++++++++-------- .../AYA.SlnSynor/Views/Shared/_Layout.cshtml | 5 +++- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs b/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs index 7e2e4ae52..6ee4b929b 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs +++ b/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs @@ -8,15 +8,22 @@ namespace AYA.SlnSinort // Para obtener más información sobre Bundles, visite http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { - bundles.Add(new ScriptBundle("~/bundles") - .Include("~/Scripts/jquery-3.3.1.js") - .Include("~/Scripts/jquery-ui-1.12.1.js") - .Include("~/Scripts/jquery.unobtrusive*","~/Scripts/jquery.validate*") - .Include("~/Scripts/jquery.validate.min.js") - .Include("~/Scripts/modernizr-*") - .Include("~/Scripts/bootstrap.min.js") - .Include("~/Scripts/toastr.min.js") - .Include("~/Scripts/DataTables-1.10.0/jquery.dataTables.js")); + bundles.Add(new ScriptBundle("~/bundles/jquery").Include( + "~/Scripts/jquery-3.3.1.js")); + + bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include( + "~/Scripts/jquery-ui-1.12.1.js")); + + bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( + "~/Scripts/jquery.unobtrusive*", + "~/Scripts/jquery.validate*")); + + // Use the development version of Modernizr to develop with and learn from. Then, when you're + // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. + bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( + "~/Scripts/modernizr-*")); + + bundles.Add(new ScriptBundle("~/bundles/jquery-dataTables").Include("~/Scripts/DataTables-1.10.0/jquery.dataTables.js")); bundles.Add(new StyleBundle("~/Content/css") .Include("~/Content/site.css")); @@ -45,8 +52,7 @@ namespace AYA.SlnSinort .Include("~/Scripts/jquery.validate.min.js")); - bundles.Add(new StyleBundle("~/Content/dashboard").Include("~/Content/dashboard.css")); - + //AGREGAR SIGUIENTES SCRIPTS } } } diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml index d6e0bb4c1..c69e1c7b8 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml +++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml @@ -26,9 +26,12 @@ href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> @*@Styles.Render("~/Content/dashboard")*@ - @Scripts.Render("~/bundles") + @Scripts.Render("~/bundles/modernizr") + @Scripts.Render("~/bundles/jquery") + @Scripts.Render("~/bundles/jquery-dataTables"); @Styles.Render("~/Content/sinort-css") + @* Seccion futuros scripts *@