public string AddDocumentReadyScript(string script) { if (documentReadyScript == null) { documentReadyScript = new JQueryDocumentReadyScript(); htmlHelper.Assets().AddScriptBlock(documentReadyScript); } documentReadyScript.AddBlock(script); // return empty string so we can just type @Html.jQuery().AddDocumentReadyScript() return(String.Empty); }
public string AddDocumentReadyScript(string script) { if (documentReadyScript == null) { documentReadyScript = new JQueryDocumentReadyScript(); htmlHelper.Assets().AddScriptBlock(documentReadyScript); } documentReadyScript.AddBlock(script); // return empty string so we can just type @Html.jQuery().AddDocumentReadyScript() return String.Empty; }