Skip to content

Commit

Permalink
Fixes #29 - Delete broken on newly uploaded media
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieugagne committed Apr 25, 2014
1 parent 65629b8 commit 80c4f70
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ class @MediaTable

constructor: (element) ->
@element = $(element)
@checkboxes = @element.find("input:checkbox")
@downloadBtn = $('.js-download')
@deleteBtn = $('.js-delete')
@setBindings()

setBindings: () =>
@checkboxes.on('click', @update)
@element.on('click', @element.find("input:checkbox"), @update)
@deleteBtn.on('click', @destroy)

update: () =>
Expand Down

0 comments on commit 80c4f70

Please sign in to comment.