[Koha-bugs] [Bug 10662] Build OAI-PMH Harvesting Client

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 2 02:08:01 CET 2018


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

--- Comment #231 from David Cook <dcook at prosentient.com.au> ---
(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.


More information about the Koha-bugs mailing list