https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10662

--- Comment #231 from David Cook <[email protected]> ---
(In reply to David Cook from comment #228)
> (In reply to David Cook from comment #227)
> > I think KohaTable is breaking some functionality from DataTables, because I
> > should be able to do this on a KohaTable:
> > https://datatables.net/reference/api/ajax.reload()
> 
> I think KohaTable is using the legacy API and DataTables allowed me to use
> the current API.
> 
> Uploading screenshots to show the different objects returned by DataTable
> and KohaTable...

OK I figured it out. 

When using "$( selector ).DataTable();", the return value is the API object.

When using KohaTable, the return value is the jQuery object.

So I just needed to add .dataTable().api() to the back of the jQuery object to
access the DataTable API.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to