Bugzilla – Attachment 67092 Details for
Bug 10858
Browse selected biblios - OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10858: Replace the unique jQuery function with our own
Bug-10858-Replace-the-unique-jQuery-function-with-.patch (text/plain), 1.15 KB, created by
Nicolas Legrand
on 2017-09-12 14:21:53 UTC
(
hide
)
Description:
Bug 10858: Replace the unique jQuery function with our own
Filename:
MIME Type:
Creator:
Nicolas Legrand
Created:
2017-09-12 14:21:53 UTC
Size:
1.15 KB
patch
obsolete
>From 68ad6386b82ddb7f22ed48047eea3c84a285bf52 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@koha-community.org> >Date: Tue, 26 May 2015 10:52:51 +0200 >Subject: [PATCH] Bug 10858: Replace the unique jQuery function with our own > >Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> >--- > koha-tmpl/opac-tmpl/bootstrap/js/commons.js | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/commons.js b/koha-tmpl/opac-tmpl/bootstrap/js/commons.js >index d0feed6..c9c724a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/commons.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/commons.js >@@ -1,6 +1,9 @@ > // Extends jQuery API >-// http://www.wskidmore.com/downloads/jquery-uniqueArray.min.js >-jQuery.extend({uniqueArray:function(e){if($.isArray(e)){var c={};var a,b;for(b=0,a=e.length;b<a;b++){var d=e[b].toString();if(c[d]){e.splice(b,1);a--;b--}else{c[d]=true}}}return(e)}}); >+jQuery.extend({uniqueArray:function(array){ >+ return $.grep(array, function(el, index) { >+ return index === $.inArray(el, array); >+ }); >+}}); > > function removeByValue(arr, val) { > for(var i=0; i<arr.length; i++) { >-- >2.1.4
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 10858
:
20947
|
21476
|
21483
|
21646
|
21647
|
21966
|
21967
|
23541
|
23542
|
23543
|
23633
|
23781
|
23782
|
25427
|
25428
|
25429
|
25430
|
25431
|
25432
|
25433
|
25434
|
25435
|
25436
|
25450
|
25451
|
25452
|
25453
|
25454
|
25455
|
25456
|
25457
|
25512
|
25513
|
25514
|
25643
|
25644
|
25645
|
25646
|
25647
|
25648
|
25649
|
25650
|
25651
|
25652
|
25653
|
36757
|
38033
|
38405
|
39502
|
39938
|
41838
|
41839
|
41840
|
41841
|
41842
|
44903
|
56479
|
56480
|
56481
|
56482
|
67073
|
67074
|
67075
|
67076
|
67086
|
67089
|
67090
|
67092
|
67093
|
67974
|
67975
|
67976
|
67977
|
67978
|
71218
|
71219
|
71220
|
71221
|
71222
|
71223
|
91584
|
91585
|
91586
|
91587
|
91588
|
91589
|
94833