This repository has been archived by the owner on Apr 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…e necessidade
- Loading branch information
1 parent
a84d584
commit 69abf7c
Showing
3 changed files
with
42 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
//= require services/validate_form_service | ||
|
||
// ready(function(){ | ||
// var hospitalNecessityPage = (function(){ | ||
// | ||
// var initialize = function(){ | ||
// validateForm(); | ||
// }; | ||
// | ||
// var validateForm = function(){ | ||
// | ||
// debugger | ||
// var inputNumber = document.getElementsByClassName('js-necessityInput')[0]; | ||
// | ||
// inputNumber.addEventListener("focusout", function(){ | ||
// for(var i = 0; i < 8; i++){ | ||
// validateFormService.validatePositiveNumber(document.getElementsByClassName('js-necessityInput')[i]); | ||
// } | ||
// }) | ||
// | ||
// }; | ||
// | ||
// var animateModal = function(){ | ||
// | ||
// } | ||
// | ||
// initialize(); | ||
// | ||
// })() | ||
// }) | ||
// = require services/validate_form_service | ||
|
||
ready(function(){ | ||
var hospitalNecessityPage = (function(){ | ||
|
||
|
||
var initialize = function(){ | ||
validateForm(); | ||
}; | ||
|
||
var validateForm = function(){ | ||
|
||
var allInputNumbers = document.getElementsByClassName('js-necessityInput'); | ||
for(var i = 0; i < 8; i++){ | ||
var inputNumber = allInputNumbers[i]; | ||
inputNumber.addEventListener("focusout", function(){ | ||
validateFormService.validatePositiveNumber(); | ||
}) | ||
} | ||
}; | ||
|
||
function myFunction(i){ | ||
alert(i); | ||
validateFormService.validatePositiveNumber(i); | ||
} | ||
|
||
var animateModal = function(){ | ||
|
||
} | ||
|
||
initialize(); | ||
|
||
})() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters