(function($){
  jQuery.fn.form_dad = function(callback){
    var form = $(this);
    $(this).find("input[type='submit']").click(function(e){
      e.preventDefault();
      var disabled_text = $(this).attr('data-dad-submit-text');
      var button_copy = $(this).clone();
      $(button_copy).attr('disabled','true').val(disabled_text);
      $(this).hide();
      $(this).after(button_copy);
      if (callback) { callback(form); } else { this.form.submit(); }
    });
  };
})($);
