$(function() {

  // toggle on/off switch
  $(document).on('click', '[data-toggle]', function() {
    targetHide = $(this).data('toggle-hide')
    targetShow = $(this).data('toggle-show')
    $('[data-toggle-name="' + targetHide  + '"]').addClass('hide')
    $('[data-toggle-name="' + targetShow  + '"]').removeClass('hide')
                                                 .find('input:text, textarea').first().focus()
  });

  // AJAX request utility
  AJAXRequest = function(url, method, data, success, error)
  {
    return $.ajax({
      url      : url,
      type     : method,
      data     : data,
      dataType : 'JSON',
      cache    : false,
      success  : function(json)
      {
        success(json)
      },
      error    : function()
      {
        error()
      }
    });
  }
});

$(function() {

  // toggle on/off switch
  $(document).on('click', '[data-toggle]', function() {
    targetHide = $(this).data('toggle-hide')
    targetShow = $(this).data('toggle-show')
    $('[data-toggle-name="' + targetHide  + '"]').addClass('hide')
    $('[data-toggle-name="' + targetShow  + '"]').removeClass('hide')
  });

  // AJAX request utility
  AJAXRequest = function(url, method, data, success, error)
  {
    return $.ajax({
      url      : url,
      type     : method,
      data     : data,
      dataType : 'JSON',
      cache    : false,
      success  : function(json)
      {
        success(json)
      },
      error    : function()
      {
        error()
      }
    });
  }
});

Remove the auto focus on element toggle feature