mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Moving jQuery Colorbox resource manifest to a separate file
This commit is contained in:
@@ -955,6 +955,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="ResourceManifests\jQueryCalendars.cs" />
|
||||
<Compile Include="ResourceManifests\jQueryFileUpload.cs" />
|
||||
<Compile Include="ResourceManifests\jQueryColorbox.cs" />
|
||||
<Compile Include="ResourceManifests\jQueryUtilities.cs" />
|
||||
<Compile Include="ResourceManifests\jQueryUI.cs" />
|
||||
<Compile Include="ResourceManifests\Uri.cs" />
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using Orchard.UI.Resources;
|
||||
|
||||
namespace Orchard.Resources.ResourceManifests {
|
||||
public class jQueryColorbox : IResourceManifestProvider {
|
||||
public void BuildManifests(ResourceManifestBuilder builder) {
|
||||
var manifest = builder.Add();
|
||||
|
||||
manifest.DefineScript("jQueryColorBox")
|
||||
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.js", "jQuery.Colorbox/jquery.colorbox.js")
|
||||
.SetVersion("1.6.4")
|
||||
.SetDependencies("jQuery");
|
||||
|
||||
manifest.DefineStyle("jQueryColorBox")
|
||||
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.css", "jQuery.Colorbox/jquery.colorbox.css")
|
||||
.SetVersion("1.6.4");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,15 +48,6 @@ namespace Orchard.Resources.ResourceManifests {
|
||||
manifest.DefineStyle("jQueryDateTimeEditor")
|
||||
.SetUrl("jquery-datetime-editor.min.css", "jquery-datetime-editor.css")
|
||||
.SetDependencies("DateTimeEditor");
|
||||
|
||||
// jQuery Color Box.
|
||||
manifest.DefineScript("jQueryColorBox")
|
||||
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.js", "jQuery.Colorbox/jquery.colorbox.js")
|
||||
.SetVersion("1.6.3")
|
||||
.SetDependencies("jQuery");
|
||||
manifest.DefineStyle("jQueryColorBox")
|
||||
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.css", "jQuery.Colorbox/jquery.colorbox.css")
|
||||
.SetVersion("1.6.3");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user