Bugzilla – Attachment 16835 Details for
Bug 8508
Holds to Pull : Library dropdown options are erroneously concatenated by br tags
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8508: Followup: Simplify the separateData js function
Bug-8508-Followup-Simplify-the-separateData-js-fun.patch (text/plain), 1.85 KB, created by
Marcel de Rooy
on 2013-03-24 17:44:28 UTC
(
hide
)
Description:
Bug 8508: Followup: Simplify the separateData js function
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-03-24 17:44:28 UTC
Size:
1.85 KB
patch
obsolete
>From 7b92c019be3b2eb572fd47e7dbd6793eef6a80a2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 13 Sep 2012 10:20:56 +0200 >Subject: [PATCH] Bug 8508: Followup: Simplify the separateData js function >Content-Type: text/plain; charset="utf-8" > >I think this patch does the same job as previously. >+ It replaces tabulation characters with 4 spaces > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../prog/en/modules/circ/pendingreserves.tt | 17 ++++------------- > 1 files changed, 4 insertions(+), 13 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >index 9bf2aa4..026e9dd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -20,20 +20,11 @@ $(document).ready(function() { > var cD = ColumnData; > var new_array = new Array(); > for ( j=0 ; j<cD.length ; j++ ) { >- var strMatch = cD[j].match(/<br>/gi); >- if (strMatch) { >- var split_array = cD[j].split(/<br>/gi); >- for ( k=0 ; k<split_array.length ; k++ ){ >- var check_array = $.inArray(split_array[k], new_array); >- if (check_array == -1) { >- new_array.push(split_array[k]); >- } >- } >- } >- else { >- var check_array = $.inArray(cD[j], new_array); >+ var split_array = cD[j].split(/<br>/gi); >+ for ( k=0 ; k<split_array.length ; k++ ){ >+ var check_array = $.inArray(split_array[k], new_array); > if (check_array == -1) { >- new_array.push(cD[j]); >+ new_array.push(split_array[k]); > } > } > } >-- >1.7.7.6
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 8508
:
12122
|
12175
|
12184
|
12227
|
15358
|
15359
|
16835
|
16836
|
16837