ember-validations as ember-addons

This commit is contained in:
jelhan 2014-11-02 16:55:10 +01:00
parent a8d71a7202
commit 3e85382cf8
9 changed files with 14 additions and 10 deletions

View file

@ -58,8 +58,6 @@ app.import({
production: 'bower_components/webshim/js-webshim/minified/polyfiller.js' production: 'bower_components/webshim/js-webshim/minified/polyfiller.js'
}); });
app.import('bower_components/ember-validations/index.js');
app.import('bower_components/sjcl/sjcl.js'); app.import('bower_components/sjcl/sjcl.js');
app.import('bower_components/modernizr/modernizr.js'); app.import('bower_components/modernizr/modernizr.js');

View file

@ -1,6 +1,7 @@
import Ember from "ember"; import Ember from "ember";
import EmberValidations from 'ember-validations';
export default Ember.ObjectController.extend(Ember.Validations.Mixin, { export default Ember.ObjectController.extend(EmberValidations.Mixin, {
actions: { actions: {
save: function() { save: function() {
// redirect to CreateMeta // redirect to CreateMeta

View file

@ -1,6 +1,7 @@
import Ember from "ember"; import Ember from "ember";
import EmberValidations from 'ember-validations';
export default Ember.ObjectController.extend(Ember.Validations.Mixin, { export default Ember.ObjectController.extend(EmberValidations.Mixin, {
actions: { actions: {
save: function() { save: function() {
// redirect to CreateOptions // redirect to CreateOptions

View file

@ -1,6 +1,7 @@
import Ember from "ember"; import Ember from "ember";
import EmberValidations from 'ember-validations';
export default Ember.ObjectController.extend(Ember.Validations.Mixin, { export default Ember.ObjectController.extend(EmberValidations.Mixin, {
actions: { actions: {
/* /*
* copy first line * copy first line

View file

@ -1,6 +1,7 @@
import Ember from "ember"; import Ember from "ember";
import EmberValidations from 'ember-validations';
export default Ember.ObjectController.extend(Ember.Validations.Mixin, { export default Ember.ObjectController.extend(EmberValidations.Mixin, {
actions: { actions: {
save: function(){ save: function(){
var pollType = this.get('pollType'); var pollType = this.get('pollType');

View file

@ -1,6 +1,7 @@
import Ember from "ember"; import Ember from "ember";
import EmberValidations from 'ember-validations';
export default Ember.ObjectController.extend(Ember.Validations.Mixin, { export default Ember.ObjectController.extend(EmberValidations.Mixin, {
actions: { actions: {
save: function(){ save: function(){
// check if answer type is selected // check if answer type is selected

View file

@ -1,6 +1,7 @@
import Ember from "ember"; import Ember from "ember";
import EmberValidations from 'ember-validations';
export default Ember.ObjectController.extend(Ember.Validations.Mixin, { export default Ember.ObjectController.extend(EmberValidations.Mixin, {
encryptionKey: '', encryptionKey: '',
newUserName: '', newUserName: '',
queryParams: ['encryptionKey'], queryParams: ['encryptionKey'],

View file

@ -13,7 +13,6 @@
"ember-qunit": "0.1.8", "ember-qunit": "0.1.8",
"ember-qunit-notifications": "0.0.4", "ember-qunit-notifications": "0.0.4",
"qunit": "~1.15.0", "qunit": "~1.15.0",
"ember-validations": "http://builds.dockyard.com.s3.amazonaws.com/ember-validations/tags/v1.0.0/ember-validations.js",
"ember-easyForm": "http://builds.dockyard.com/ember-easyForm/latest/ember-easyForm.js", "ember-easyForm": "http://builds.dockyard.com/ember-easyForm/latest/ember-easyForm.js",
"ember-i18n": "~2.9.0", "ember-i18n": "~2.9.0",
"sjcl": "~1.0.0", "sjcl": "~1.0.0",

View file

@ -34,6 +34,7 @@
"express": "^4.8.5", "express": "^4.8.5",
"glob": "^4.0.5", "glob": "^4.0.5",
"broccoli-static-compiler": "~0.2.1", "broccoli-static-compiler": "~0.2.1",
"ember-cli-less": "~1.0.4" "ember-cli-less": "~1.0.4",
"ember-validations": "~2.0.0"
} }
} }