Action to change element via jQuery


#1

I have a template with multiple href’s on the page that are linked to actions in my route. When the link is clicked I open a bootstrap modal window but I need to change some aspects of it via jQuery depending on which href was clicked.

I can get it to work from the route but I don’t think this is the best way to do it.

setTimeout(function() {
     Ember.$('.modal-dialog').css('width', '90%');
}, 0);

this.render('partials/properties/edit-gallery', {
     into: 'application',
     outlet: 'modal'
});

Any suggestions on how this should be done properly?