remove loging and test function
This commit is contained in:
parent
f6e5905e1a
commit
8dfab4c812
1 changed files with 2 additions and 9 deletions
|
@ -321,9 +321,7 @@ App.CreateOptionsController = Ember.ObjectController.extend({
|
||||||
saveOptions: function() {
|
saveOptions: function() {
|
||||||
var options = this.get('model.options'),
|
var options = this.get('model.options'),
|
||||||
newOptions = [];
|
newOptions = [];
|
||||||
|
|
||||||
console.log(options);
|
|
||||||
|
|
||||||
// remove options without value
|
// remove options without value
|
||||||
options.forEach(function(option) {
|
options.forEach(function(option) {
|
||||||
if (option.title !== '') {
|
if (option.title !== '') {
|
||||||
|
@ -345,12 +343,7 @@ App.CreateOptionsController = Ember.ObjectController.extend({
|
||||||
// redirect to CreateSettings
|
// redirect to CreateSettings
|
||||||
this.transitionToRoute('create.settings');
|
this.transitionToRoute('create.settings');
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
test: function(){
|
|
||||||
console.log('is triggered');
|
|
||||||
console.log(this.get('options'));
|
|
||||||
}.observes('options')
|
|
||||||
});
|
});
|
||||||
|
|
||||||
App.CreateSettingsController = Ember.ObjectController.extend({
|
App.CreateSettingsController = Ember.ObjectController.extend({
|
||||||
|
|
Loading…
Reference in a new issue