Rock.Web.UI.Controls.RockRating.OnInit C# (CSharp) Method

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( System e ) : void
e System An object that contains the event data.
return void
        protected override void OnInit( System.EventArgs e )
        {
            base.OnInit( e );

            string script = "$('input.rock-rating-input').rating();";
            ScriptManager.RegisterStartupScript( this, this.GetType(), "rock-rating", script, true );
        }