mirror of
https://github.com/szimek/sharedrop.git
synced 2026-06-13 21:03:07 +08:00
Merge branch 'about_page' of github.com:cowbell/sharedrop into about_page
This commit is contained in:
commit
acfaecbde3
@ -66,6 +66,7 @@
|
||||
<script src="/scripts/app/components/modal_dialog_component.js"></script>
|
||||
<script src="/scripts/app/components/popover_confirm_component.js"></script>
|
||||
<script src="/scripts/app/controllers/application_controller.js"></script>
|
||||
<script src="/scripts/app/controllers/about_controller.js"></script>
|
||||
<script src="/scripts/app/controllers/index_controller.js"></script>
|
||||
<script src="/scripts/app/controllers/peer_controller.js"></script>
|
||||
<script src="/scripts/app/models/peer.js"></script>
|
||||
|
||||
@ -71,14 +71,15 @@ ShareDrop.App.IndexRoute = Ember.Route.extend({
|
||||
actions: {
|
||||
openModal: function(modalName) {
|
||||
return this.render(modalName, {
|
||||
into: 'index',
|
||||
outlet: 'modal'
|
||||
outlet: 'modal',
|
||||
into: 'index'
|
||||
});
|
||||
},
|
||||
|
||||
closeModal: function() {
|
||||
return this.disconnectOutlet({
|
||||
outlet: 'modal'
|
||||
outlet: 'modal',
|
||||
parentView: 'index'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
7
app/scripts/app/controllers/about_controller.js
Normal file
7
app/scripts/app/controllers/about_controller.js
Normal file
@ -0,0 +1,7 @@
|
||||
ShareDrop.App.AboutController = Ember.Controller.extend({
|
||||
actions: {
|
||||
close: function() {
|
||||
return this.send('closeModal');
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user