mirror of
https://github.com/szimek/sharedrop.git
synced 2026-06-13 21:03:07 +08:00
Simplify currentURL property
This commit is contained in:
parent
6521b09715
commit
dabd5dbe9d
@ -74,7 +74,6 @@
|
||||
<script src="/scripts/app/controllers/user_controller.js"></script>
|
||||
<script src="/scripts/app/models/peer.js"></script>
|
||||
<script src="/scripts/app/models/user.js"></script>
|
||||
<script src="/scripts/app/views/about_room_view.js"></script>
|
||||
<script src="/scripts/app/views/file_field.js"></script>
|
||||
<script src="/scripts/app/views/peer_view.js"></script>
|
||||
<script src="/scripts/app/views/peer_avatar_view.js"></script>
|
||||
|
||||
@ -15,6 +15,10 @@ ShareDrop.App.ApplicationController = Ember.Controller.extend({
|
||||
this.handlePersonaAuth();
|
||||
},
|
||||
|
||||
currentURL: function () {
|
||||
return window.location.href;
|
||||
}.property('currentPath'),
|
||||
|
||||
actions: {
|
||||
signIn: function () {
|
||||
navigator.id.request();
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{{#modal-dialog action="closeModal" currentURL=view.currentURL}}
|
||||
{{#modal-dialog action="closeModal"}}
|
||||
<h2 class="logo"><span>ShareDrop</span></h2>
|
||||
<h3>How rooms work?</h3>
|
||||
<p>
|
||||
@ -6,7 +6,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{input value=view.currentURL disabled="disabled"}}
|
||||
{{input value=currentURL disabled="disabled"}}
|
||||
</p>
|
||||
|
||||
<div class="actions">
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
ShareDrop.App.AboutRoomView = Ember.View.extend({
|
||||
currentURL: function () {
|
||||
return window.location.href;
|
||||
}.property()
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user