root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / routes / application.js @ 75e13060
History | View | Annotate | Download (427 Bytes)
1 |
App.ApplicationRoute = Ember.Route.extend({ |
---|---|
2 |
actions: {
|
3 |
openModal: function(modalName, controller, model) { |
4 |
|
5 |
this.controllerFor(controller).set("model", model); |
6 |
this.render(modalName, {
|
7 |
into: 'application', |
8 |
outlet: 'modal', |
9 |
controller: controller,
|
10 |
}); |
11 |
$('#app-modal').foundation('reveal','open'); |
12 |
}, |
13 |
} |
14 |
}); |
15 |
|
16 |
|