Updates and LeafInput
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.Optimization;
|
||||
using System.Web.WebPages;
|
||||
|
||||
namespace LeafWeb.Web
|
||||
{
|
||||
public class BootstrapEditorTemplatesConfig
|
||||
{
|
||||
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
|
||||
public static void RegisterBundles()
|
||||
{
|
||||
BundleCollection bundles = BundleTable.Bundles;
|
||||
|
||||
bundles.Add(new ScriptBundle("~/Scripts/val").Include(
|
||||
"~/Scripts/jquery.unobtrusive*",
|
||||
"~/Scripts/jquery.validate*",
|
||||
"~/Scripts/validation.js"
|
||||
));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/Scripts/bootstrap").Include(
|
||||
"~/Scripts/globalize/globalize.js",
|
||||
"~/Scripts/globalize/cultures/globalize.culture." + System.Globalization.CultureInfo.CurrentCulture.ToString() + ".js",
|
||||
"~/Scripts/bootstrap*",
|
||||
"~/Scripts/filebutton.js",
|
||||
"~/Scripts/globalize-datepicker.js"
|
||||
));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/Scripts/md").Include(
|
||||
"~/Scripts/MarkdownDeepLib.min.js",
|
||||
"~/Scripts/markdown.js"
|
||||
));
|
||||
|
||||
bundles.Add(new StyleBundle("~/Content/site").Include(
|
||||
"~/Content/themes/bootstrap/bootstrap.css"));
|
||||
|
||||
// By default it will exclude the MarkdownDeepLib.min.js file because of its .min.js extension.
|
||||
bundles.IgnoreList.Clear();
|
||||
// BundleTable.EnableOptimizations = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,12 @@ namespace LeafWeb.Web.App_Start
|
||||
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
|
||||
"~/scripts/jquery-{version}.js"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/forms").Include(
|
||||
"~/scripts/jquery.validate.js",
|
||||
"~/scripts/jquery.validate.unobtrusive.js",
|
||||
"~/scripts/jquery.validate.unobtrusive.bootstrap.js",
|
||||
"~/scripts/filebutton.js"));
|
||||
|
||||
//// 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(
|
||||
|
||||
Reference in New Issue
Block a user