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

Kyle M Hall <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #127320|0                           |1
        is obsolete|                            |
 Attachment #127321|0                           |1
        is obsolete|                            |
 Attachment #127322|0                           |1
        is obsolete|                            |

--- Comment #10 from Kyle M Hall <[email protected]> ---
Created attachment 129117
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129117&action=edit
Bug 29397: Add .kohaSelect select2 wrapper function

This patch adds a kohaSelect wrapper function to simplify
paging/infinite scrolling with select2 using the Koha RESTful api's.

Invoke select2 select boxes as you normally would from JS, but instead
of calling .select2(config) use .kohaSelect(config).

If an 'ajax' property is defined in your config object, we wrap the
transport such that responses include a pagination key as expected by
select2.

Signed-off-by: Martin Renvoize <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>

Signed-off-by: Kyle M Hall <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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