mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 19:34:40 +08:00
Including OpenAjax.js in admin pages as our client-side event bus.
e.g.: OpenAjax.hub.subscribe("orchard.someeventname.*, function(name, eventdata) { }); OpenAjax.hub.publish("orchard.someeventname.somethingspecific", eventdata); --HG-- branch : dev
This commit is contained in:
@@ -266,6 +266,7 @@
|
||||
<Content Include="Shapes\Scripts\base.js" />
|
||||
<Content Include="Shapes\Scripts\html5.js" />
|
||||
<Content Include="Shapes\Scripts\jquery.switchable.js" />
|
||||
<Content Include="Shapes\Scripts\OpenAjax.js" />
|
||||
<Content Include="Shapes\Styles\Images\detail-view-on.gif" />
|
||||
<Content Include="Shapes\Styles\Images\detail-view.gif" />
|
||||
<Content Include="Shapes\Styles\Images\summary-view-on.gif" />
|
||||
|
@@ -5,6 +5,7 @@ namespace Orchard.Core.Shapes {
|
||||
public void BuildManifests(ResourceManifestBuilder builder) {
|
||||
var manifest = builder.Add();
|
||||
manifest.DefineScript("ShapesBase").SetUrl("base.js").SetDependencies("jQuery");
|
||||
manifest.DefineScript("OpenAjax").SetUrl("OpenAjax.js");
|
||||
manifest.DefineStyle("Shapes").SetUrl("site.css"); // todo: missing
|
||||
manifest.DefineStyle("ShapesSpecial").SetUrl("special.css");
|
||||
|
||||
|
@@ -10,6 +10,7 @@
|
||||
Style.Include("ie.css").UseCondition("lte IE 8").SetAttribute("media", "screen, projection");
|
||||
Style.Include("ie6.css").UseCondition("lte IE 6").SetAttribute("media", "screen, projection");
|
||||
Script.Require("jQuery");
|
||||
Script.Require("OpenAjax");
|
||||
Script.Require("ShapesBase");
|
||||
Script.Include("admin.js");
|
||||
|
||||
|
Reference in New Issue
Block a user