Skip to content

Commit

Permalink
Merge pull request #1 from kobsy/more-view-callbacks
Browse files Browse the repository at this point in the history
Added additional view callbacks in CollectionEditor
  • Loading branch information
boblail committed Nov 10, 2015
2 parents 5745648 + c81aeeb commit 5961e1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vendor/assets/javascripts/neat/collection_editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class window.Neat.CollectionEditor extends Backbone.View
$(@el).find('.extended-pagination').html(@paginator.renderExtendedPagination())

for model in @paginator.getCurrentSet()
view = new @modelView # e.g. window.CalendarView
view = @constructModelView # e.g. window.CalendarView
resource: @resource
viewPath: @viewPath
model: model
Expand All @@ -144,6 +144,8 @@ class window.Neat.CollectionEditor extends Backbone.View
$ul.append $el
@

constructModelView: (options) ->
new @modelView options


beforeEdit: (view)->
Expand Down

0 comments on commit 5961e1e

Please sign in to comment.