ember-cli-validation-components
Advanced tools
@@ -8,3 +8,3 @@ import Ember from "ember"; | ||
| registerField: Ember.on("init", function() { | ||
| let fieldObj = this.getAttr('formFields').findBy("_id", this.attrs._id); | ||
| let fieldObj = this.get('formFields').findBy("_id", this.get('_id')); | ||
| fieldObj.validated = false; | ||
@@ -20,3 +20,3 @@ fieldObj.hasError = false; | ||
| let fieldObj = this.get("fieldObj"); | ||
| let formFields = this.getAttr('formFields'); | ||
| let formFields = this.get('formFields'); | ||
| let formData = this.get("formValidator").formData(formFields); | ||
@@ -23,0 +23,0 @@ Ember.set(fieldObj, "value", !fieldObj.value); |
@@ -8,3 +8,3 @@ import Ember from "ember"; | ||
| registerField: Ember.on("init", function() { | ||
| let fieldObj = this.getAttr('formFields').findBy("_id", this.attrs._id); | ||
| let fieldObj = this.get('formFields').findBy("_id", this.get('_id')); | ||
| fieldObj.validated = false; | ||
@@ -24,3 +24,3 @@ fieldObj.hasError = false; | ||
| let fieldObj = this.get("fieldObj"); | ||
| let formFields = this.getAttr('formFields'); | ||
| let formFields = this.get('formFields'); | ||
| let formData = this.get("formValidator").formData(formFields); | ||
@@ -36,3 +36,3 @@ if (fieldObj.validated === true) { | ||
| let fieldObj = this.get("fieldObj"); | ||
| let formFields = this.getAttr('formFields'); | ||
| let formFields = this.get('formFields'); | ||
| let formData = this.get("formValidator").formData(formFields); | ||
@@ -39,0 +39,0 @@ if (value === "" && !fieldObj.validated) { return; } |
@@ -8,3 +8,3 @@ import Ember from "ember"; | ||
| registerField: Ember.on("init", function() { | ||
| let fieldObj = this.getAttr('formFields').findBy("_id", this.attrs._id); | ||
| let fieldObj = this.get('formFields').findBy("_id", this.get('_id')); | ||
| fieldObj.validated = false; | ||
@@ -29,3 +29,3 @@ fieldObj.hasError = false; | ||
| let fieldObj = this.get("fieldObj"); | ||
| let formFields = this.getAttr('formFields'); | ||
| let formFields = this.get('formFields'); | ||
| let formData = this.get("formValidator").formData(formFields); | ||
@@ -32,0 +32,0 @@ Ember.set(fieldObj, "value", currentChoice); |
@@ -8,5 +8,5 @@ {{#if before}} | ||
| {{#if fieldObj.value}} | ||
| <input id="{{_id}}" type="checkbox" name="cool" checked> | ||
| <input id="{{_id}}" type="checkbox" name="{{_name}}" checked> | ||
| {{else}} | ||
| <input id="{{_id}}" type="checkbox" name="cool"> | ||
| <input id="{{_id}}" type="checkbox" name="{{_name}}"> | ||
| {{/if}} | ||
@@ -13,0 +13,0 @@ |
@@ -8,3 +8,3 @@ {{#if before}} | ||
| {{input id=_id | ||
| class=class | ||
| class=_class | ||
| type="text" | ||
@@ -11,0 +11,0 @@ value=fieldObj.value |
+1
-1
| { | ||
| "name": "ember-cli-validation-components", | ||
| "version": "0.3.1", | ||
| "version": "0.3.2", | ||
| "description": "Easy to use input components to manage all your form validation needs", | ||
@@ -5,0 +5,0 @@ "directories": { |
14037
-0.1%