-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
Hi Austin, thanks for your hard work on jquery-datatables package. It's very awesome :-) Since Meteor version 0.8.3 has just released, could you please help upgrade jquery-datatables for the new version? Thank you.
Following is my current temporary workaround F.Y.I. For maintantance considerations, I wrote these codes in an additional file, rather than modifying the existing codes in the package.
# patch for jquery-datatables v1.0.5 for Meteor v0.8.3
DataTableComponent.prototype.oldRendered = DataTableComponent.prototype.rendered
DataTableComponent.prototype.rendered = ->
that = this
setTimeout ->
that.oldRendered()
, 0
return
DataTableComponent.prototype.setQuery = (query) ->
if @subscription
@prepareQuery() unless @query
#unless @query() is query
if true
@query query
@rendered()
Template.DataTable.created = ->
@.__component__ = @.__view__
dataTableInstance = new DataTableComponent @