Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / routes / application.js @ be5195f3

History | View | Annotate | Download (437 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('modals/'+modalName, {
7
                into: 'application',
8
                outlet: 'modal',
9
                controller: controller,
10
            });
11
            $('#app-modal').foundation('reveal','open');
12
        },
13
    }
14
});
15

    
16