Skip to content

Commit

Permalink
removed Ember.Link in favor of new action helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dgeb committed Jan 24, 2012
1 parent ebb9874 commit e8d8d4c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
Expand Up @@ -7,4 +7,4 @@
{{submitButton "Create"}}
{{/if}}
{{/with}}
{{#view Ember.Link action="cancelForm"}}Cancel{{/view}}
<a href="#" {{action "cancelForm"}}>Cancel</a>
4 changes: 2 additions & 2 deletions app/assets/javascripts/app/templates/contacts/list.handlebars
Expand Up @@ -20,6 +20,6 @@
</tbody>
</table>
<div class="commands">
{{#view Ember.Link action="showNew"}}New Contact{{/view}}
{{#view Ember.Link action="refreshListing"}}Refresh Listing{{/view}}
<a href="#" {{action "showNew"}}>New Contact</a>
<a href="#" {{action "refreshListing"}}>Refresh Listing</a>
</div>
4 changes: 2 additions & 2 deletions app/assets/javascripts/app/templates/contacts/show.handlebars
Expand Up @@ -7,8 +7,8 @@
{{/if}}
<div class="commands">
{{#unless isEditing}}
{{#view Ember.Link action="showEdit"}}Edit{{/view}}
{{#view Ember.Link action="destroyRecord"}}Remove{{/view}}
<a href="#" {{action "showEdit"}}>Edit</a>
<a href="#" {{action "destroyRecord"}}>Remove</a>
{{/unless}}
</div>
</td>
3 changes: 1 addition & 2 deletions app/assets/javascripts/app/views/contacts/show.js
Expand Up @@ -3,9 +3,8 @@ App.ShowContactView = Ember.View.extend({
classNames: ['show-contact'],
tagName: 'tr',

doubleClick: function(evt) {
doubleClick: function() {
this.showEdit();
return false;
},

showEdit: function() {
Expand Down
Empty file.
15 changes: 0 additions & 15 deletions app/assets/javascripts/lib/ember-link.js

This file was deleted.

0 comments on commit e8d8d4c

Please sign in to comment.