Skip to content

Commit

Permalink
add comments for textarea validation
Browse files Browse the repository at this point in the history
  • Loading branch information
swatijadhav committed Dec 9, 2014
1 parent 5ac85b2 commit 4bc7174
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/mixins/validatable-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default Ember.Mixin.create({
return;
}

// Validate Textarea with proper text and not accept only blank spaces, only new line characters.
if(input.tagName.toLowerCase() === 'textarea') {
var content = Ember.$.trim(Ember.$(input).val());
if(content.length === 0) {
Expand Down

0 comments on commit 4bc7174

Please sign in to comment.