Bugzilla – Attachment 128039 Details for
Bug 29575
Add a JS render function equivalent of the patron-title.inc TT include
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29575: (QA follow-up) Add JSDoc documentation
Bug-29575-QA-follow-up-Add-JSDoc-documentation.patch (text/plain), 1.40 KB, created by
Martin Renvoize (ashimema)
on 2021-11-26 13:16:43 UTC
(
hide
)
Description:
Bug 29575: (QA follow-up) Add JSDoc documentation
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-11-26 13:16:43 UTC
Size:
1.40 KB
patch
obsolete
>From c776a3c56807716c2fa0ed899270276258bf25de Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 25 Nov 2021 11:42:17 +0000 >Subject: [PATCH] Bug 29575: (QA follow-up) Add JSDoc documentation > >This patch adds some basic documentation for the $patron_to_html >function the patchset introduces. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../intranet-tmpl/prog/en/includes/js-patron-format.inc | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc >index c81d37338f..3df91d35b2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc >@@ -1,6 +1,13 @@ > <!-- js-patron-title.inc --> > <script> > (function() { >+ /** >+ * Format the patron response from a Koha RESTful API request. >+ * @param {Object} patron The patron json object as returned from the Koha RESTful API >+ * @param {Object} config A configuration object >+ * Valid keys are: `invert_name`, `display_cardnumber` and `url` >+ * @return {string} The formatted HTML string >+ */ > window.$patron_to_html = function( patron, config ) { > > if ( patron === undefined ) { >-- >2.20.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 29575
:
127999
|
128000
|
128004
|
128006
|
128038
| 128039 |
128040
|
128639