﻿// Unique namespace root for all scripts
Site = {}

Site.Init = function()
{
    // General logic for trigger a post when pressing enter within a default button wrapper
    $( ".default-button-wrapper" ).keypress( function( e ) {
        if( (e.keyCode ? e.keyCode : e.which) == 13 )
        {
           $( this ).find( ".default-button:first" ).click();
           e.stopPropagation();
           // disables the build in event from posting the form when pressing enter
           e.preventDefault();
        }
    });
    
    Site.AjaxLoader.Init();
}

$( function()
{
    Site.Init();
});