Bugzilla – Attachment 127280 Details for
Bug 29397
Add a select2 wrapper for the API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29397: Add function documentation
Bug-29397-Add-function-documentation.patch (text/plain), 1.26 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-11-03 17:59:18 UTC
(
hide
)
Description:
Bug 29397: Add function documentation
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-11-03 17:59:18 UTC
Size:
1.26 KB
patch
obsolete
>From 97a59302c8cd95a75680b288221b9b69de70a2cd Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 3 Nov 2021 14:46:53 -0300 >Subject: [PATCH] Bug 29397: Add function documentation > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/js/select2.js | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/select2.js b/koha-tmpl/intranet-tmpl/prog/js/select2.js >index 3ac63d0043..df8b108d84 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/select2.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/select2.js >@@ -58,8 +58,15 @@ function kohaSelect2Transport(params, success, failure) { > $request.fail(failure); > } > >-/* wrapper that nests paging information into the results object for use with koha REST apis */ > (function($) { >+ >+ /** >+ * Create a new Select2 instance that uses the Koha RESTful API response headers to >+ * read pagination information >+ * @param {Object} config Please see the Select2 documentation for further details >+ * @return {Object} The Select2 instance >+ */ >+ > $.fn.kohaSelect = function(config) { > if (config.hasOwnProperty('ajax')) { > config.ajax.transport = function(params, success, failure) { >-- >2.33.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29397
:
127265
|
127279
|
127280
|
127281
|
127320
|
127321
|
127322
|
129117
|
130221
|
130222