Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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;
        }