Orchard.UI.Resources.RequireSettings

Topics: Writing modules
Sep 13, 2011 at 1:19 PM

@Script.Require("jQuery")
@Script.Include("WebacreAjax.js")
@Script.Include("WebacreChat.js")

These lines of code causes Orchard.UI.Resources.RequireSettings to appear 3 times in my HTML page - see http://99.20.128.159:83/resources.jpg

How to get rid of the Orchard.UI.Resources.RequireSettings messages?

Sep 13, 2011 at 2:39 PM

Put them inside @{ }

@{
    Script.Require("jQuery");
    Script.Include("WebacreAjax.js");
    Script.Include("WebacreChat.js");
}

Sep 13, 2011 at 3:25 PM
kobowi wrote:

Put them inside @{ }

@{
    Script.Require("jQuery");
    Script.Include("WebacreAjax.js");
    Script.Include("WebacreChat.js");
}

Problem solved. Thanks.