View | Details | Raw Unified | Return to bug 29397
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/select2.js (-2 / +8 lines)
Lines 58-65 function kohaSelect2Transport(params, success, failure) { Link Here
58
    $request.fail(failure);
58
    $request.fail(failure);
59
}
59
}
60
60
61
/* wrapper that nests paging information into the results object for use with koha REST apis */
62
(function($) {
61
(function($) {
62
63
    /**
64
    * Create a new Select2 instance that uses the Koha RESTful API response headers to
65
    * read pagination information
66
    * @param  {Object}  config  Please see the Select2 documentation for further details
67
    * @return {Object}          The Select2 instance
68
    */
69
63
    $.fn.kohaSelect = function(config) {
70
    $.fn.kohaSelect = function(config) {
64
        if (config.hasOwnProperty('ajax')) {
71
        if (config.hasOwnProperty('ajax')) {
65
            config.ajax.transport = function(params, success, failure) {
72
            config.ajax.transport = function(params, success, failure) {
66
- 

Return to bug 29397