Exemplo n.º 1
0
 private void InitScripts()
 {
     Master
     .AddStaticStyles(GetStaticStyleSheet())
     .AddStaticBodyScripts(GetStaticJavaScript())
     .RegisterInlineScript(
         "jQuery(document.body).children('form').on('submit', function() { return false; });");
 }
Exemplo n.º 2
0
        protected void WriteClientScripts()
        {
            WriteProjectResources();

            Master
            .AddStaticStyles(GetStaticStyleSheet())
            .AddStaticBodyScripts(GetStaticJavaScript());
        }
Exemplo n.º 3
0
        protected void InitControls()
        {
            SideNavigation.Controls.Add(LoadControl(NavigationSidePanel.Location));

            Master
            .AddStaticStyles(GetStaticStyleSheet())
            .AddStaticBodyScripts(GetStaticJavaScript())
            .RegisterInlineScript("ASC.CRM.NavSidePanel.init();");
        }
Exemplo n.º 4
0
        protected void InitControls()
        {
            SideNavigation.Controls.Add(LoadControl(NavigationSidePanel.Location));

            Master
            .AddStaticStyles(GetStaticStyleSheet())
            .AddStaticBodyScripts(GetStaticJavaScript())
            .RegisterInlineScript(string.Format("ASC.Sample.PageScript.init('{0}');", SecurityContext.CurrentAccount.ID));
        }