Ejemplo n.º 1
0
        private static void RegisterScriptBundles(BundleCollection bundles)
        {
            bundles.RegisterScript(Bundles.Scripts.BootstrapValidator,
                                   "~/Scripts/lib/1000hz-bootstrap-validator/validator-{version}.js",
                                   "~/Scripts/app/validator.js");

            //lib
            bundles.RegisterScript(Bundles.Scripts.JQuery, Cdns.JQuery, "~/Scripts/lib/jquery/jquery-{version}.js");
            bundles.RegisterScript(Bundles.Scripts.Bootstrap, Cdns.BootstrapJs, "~/Scripts/lib/bootstrap/bootstrap-{version}.js");
            //app
            bundles.RegisterScript(Bundles.Scripts.ListLoader, "~/Scripts/app/load-list-ajax.js");
        }
Ejemplo n.º 2
0
 private static void RegisterStyleBundles(BundleCollection bundles)
 {
     //lib
     bundles.RegisterStyle(Bundles.Styles.Bootstrap, Cdns.BootstrapCss, "~/Content/bootstrap-{version}.css");
     bundles.RegisterScript(Bundles.Styles.FontAwesome, Cdns.FontAwesome, "~/Content/font-awesome-{version}.css");
     //app
     bundles.RegisterStyle(Bundles.Styles.Global,
                           "~/Content/app/global.css",
                           "~/Content/app/loader.css",
                           "~/Content/app/validation.css");
     bundles.RegisterStyle(Bundles.Styles.Login, "~/Content/app/login.css");
 }
Ejemplo n.º 3
0
 private static void RegisterScript(this BundleCollection bundles, string virtualPath, params string[] path)
 {
     bundles.RegisterScript(virtualPath, null, path);
 }