Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
#5 <@marlonfurtado> - Retirar campo senha do form de cadastro
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonfurtado committed Nov 8, 2016
1 parent 4c7fec9 commit 32efad4
Show file tree
Hide file tree
Showing 3 changed files with 427 additions and 418 deletions.
30 changes: 15 additions & 15 deletions app/assets/javascripts/donator_register_prototype.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
ready(function(){

// onlyInView("user_blood_donators", ["newPrototipo", "edit"],"blood_prototype", function(){
var initialize = function(){
buttonValidSimpleFormDonator();
validateSimpleFormDonator();
};
var initialize = function(){
buttonValidSimpleFormDonator();
validateSimpleFormDonator();
};

var buttonValidSimpleFormDonator = function(){
var buttonRegisterSimpleDonator = document.querySelector('.js-validateButtonSimpleDonator');
buttonRegisterSimpleDonator.classList.add('is-disabled');
}
var buttonValidSimpleFormDonator = function(){
var buttonRegisterSimpleDonator = document.querySelector('.js-validateButtonSimpleDonator');
buttonRegisterSimpleDonator.classList.add('is-disabled');
}

var validateSimpleFormDonator = function(){
validateFormService.validateName('.js-validateName', 'focusout');
validateFormService.validateEmail('.js-validateEmail', 'focusout');
validateFormService.validateTerms('.js-validateTerms', 'click');
validateFormService.validatePassword('.js-validatePassword','.js-validatePasswordConfirmation','keyup');
};
var validateSimpleFormDonator = function(){
validateFormService.validateName('.js-validateName', 'focusout');
validateFormService.validateEmail('.js-validateEmail', 'focusout');
validateFormService.validateTerms('.js-validateTerms', 'click');
//validateFormService.validatePassword('.js-validatePassword','.js-validatePasswordConfirmation','keyup');
};

initialize();
initialize();

// });

Expand Down
Loading

0 comments on commit 32efad4

Please sign in to comment.