This file contains hidden or 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
| Template.newUser.onRendered( () => { | |
| $("#signUpForm").validate({ | |
| highlight: function(element, errorClass) { | |
| $(element).parent().addClass(errorClass); | |
| }, | |
| unhighlight: function(element, errorClass, validClass) { | |
| $(element).parent().removeClass(errorClass).addClass(validClass); | |
| }, | |
| onfocusout: true, | |
| errorClass: "has-error", |
This file contains hidden or 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
| /* | |
| Read a file with Node's fs instead of Meteor's Assets lib. | |
| Originally used as a swap for Meteor's Assets.getText() method not working consistently. | |
| */ | |
| import fs from 'fs'; | |
| const file = 'some-file-in-private.html'; | |
| // assets/app here is analagous to your /private directory in the root of your app. This is where Meteor ultimately | |
| // stores the contents of /private in a built app. |
OlderNewer