Revision 13de11ea snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/okeanos-ember.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/okeanos-ember.js | ||
---|---|---|
5 | 5 |
LOG_TRANSITIONS: true, // To have Ember write out transition events to the log (it can be helpful to see exactly what is going on with the router) |
6 | 6 |
}); |
7 | 7 |
|
8 |
Okeanos.ApplicationAdapter = DS.FixtureAdapter.extend();; |
|
8 |
Okeanos.ApplicationAdapter = DS.FixtureAdapter.extend();;Ember.Inflector.inflector.uncountable('account');
|
|
9 | 9 |
|
10 | 10 |
Okeanos.Account = DS.Model.extend({ |
11 | 11 |
email: DS.attr('string') |
12 | 12 |
}); |
13 | 13 |
|
14 | 14 |
// CHECK can i use a single obj and not an array of obj |
15 |
Okeanos.Account.FIXTURES = [{
|
|
15 |
Okeanos.Account.FIXTURES = { |
|
16 | 16 |
id: 001, |
17 | 17 |
email: "athina@mail.com" |
18 |
}];
|
|
18 |
}; |
|
19 | 19 |
|
20 | 20 |
|
21 | 21 |
|
... | ... | |
171 | 171 |
|
172 | 172 |
Okeanos.ApplicationController = Ember.Controller.extend({ |
173 | 173 |
updateCurrentPath: function() { |
174 |
Okeanos.set('currentPath', this.get('currentPath')) |
|
175 |
console.log('AppController: CurrentPath ->', this.get('currentPath')); |
|
174 |
// Okeanos.set('currentPath', this.get('currentPath'))
|
|
175 |
// console.log('AppController: CurrentPath ->', this.get('currentPath'));
|
|
176 | 176 |
return this.get('currentPath'); |
177 | 177 |
}.observes('currentPath'), |
178 | 178 |
actions: { |
... | ... | |
304 | 304 |
|
305 | 305 |
/* Components */ |
306 | 306 |
|
307 |
Okeanos.ActionBtnsSimpleComponent = Ember.Component.extend({
|
|
307 |
Okeanos.Btn1Component = Ember.Component.extend({
|
|
308 | 308 |
tagName: 'a', |
309 | 309 |
click: function() { |
310 | 310 |
this.sendAction("action", this.get('param')); |
Also available in: Unified diff