From 61e66598b571c1b821dc243b5f87f93446b4fb21 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Wed, 21 Oct 2020 16:15:34 -0700 Subject: [PATCH] Update jquery.uls https://github.com/wikimedia/jquery.uls/commit/967eec093edb153f4fdd0e5e4 Updates: 1) Always send event when triggering onSelect The $.uls function in jquery.uls.core in createLanguageFilter passes the onSelect function to the $.fn.languagefilter so the onSelect there should be made compatible. 2) Removal of png images no longer needed for old browsers. Bug: T261973 Change-Id: Ie316cc627178dde15d22607b2099d0da96dd6fda --- lib/jquery.uls/css/jquery.uls.css | 12 +++--------- lib/jquery.uls/images/close.png | Bin 258 -> 0 bytes lib/jquery.uls/images/language.png | Bin 447 -> 0 bytes lib/jquery.uls/images/search.png | Bin 364 -> 0 bytes lib/jquery.uls/src/jquery.uls.languagefilter.js | 4 ++-- 5 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 lib/jquery.uls/images/close.png delete mode 100644 lib/jquery.uls/images/language.png delete mode 100644 lib/jquery.uls/images/search.png diff --git a/lib/jquery.uls/css/jquery.uls.css b/lib/jquery.uls/css/jquery.uls.css index 3564d9f6..c8e6c22f 100644 --- a/lib/jquery.uls/css/jquery.uls.css +++ b/lib/jquery.uls/css/jquery.uls.css @@ -1,7 +1,5 @@ .uls-trigger { - background: url( ../images/language.png ) no-repeat left center; - /* @embed */ - background-image: linear-gradient( transparent, transparent ), url( ../images/language.svg ); + background: url( ../images/language.svg ) no-repeat left center; padding-left: 24px; } @@ -65,9 +63,7 @@ } .uls-search-label { - background: url( ../images/search.png ) no-repeat center center; - /* @embed */ - background-image: linear-gradient( transparent, transparent ), url( ../images/search.svg ); + background: url( ../images/search.svg ) no-repeat center center; background-size: 20px; height: 32px; width: 44px; @@ -110,9 +106,7 @@ } .uls-languagefilter-clear { - background: url( ../images/close.png ) no-repeat left center; - /* @embed */ - background-image: linear-gradient( transparent, transparent ), url( ../images/close.svg ); + background: url( ../images/close.svg ) no-repeat left center; background-size: 15px; cursor: pointer; height: 15px; diff --git a/lib/jquery.uls/images/close.png b/lib/jquery.uls/images/close.png deleted file mode 100644 index e320bfcfbf1ed49fff5840ac966968506f633b45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 258 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VORD{lS#P}X3qJHA5Fb@oXtei1UT-irAP?d3R{Hk^||UHxHN5( wq8szYwn>w|9_ct+Rdz*3CL^eZ*N%aqQpUmJc4_-(pi>w;UHx3vIVCg!0Fp~l!av3%4+HEjF5v92 zXEx-Y^&?Z^UZ>hKjw4S4q|^f#9@#s@bf~0peof<;bt^mIqjpP-C3}ZG!$uQ<&5R!{ z751?l(ecR2S=e@vXX~-_1qK54jE{^R_AqtSGj3#^HOuvaNCNYb`o;=I#qcV{qZ#V6 z<|qi%Ge7zp@Gno{AJ-A48$3cxkIEGOF&)Wo{K07A^PFj;S%|ORl|>dB_EM+LyP0Wl zb(lL&KIX6Ru373F=MhtfKWwkK@-iywnl?E$a7#TCpTNr^`GIHF-6tD%%wd*_+aO`z zIL)u$@#xu!rW=GN`aKss;aKe9`Q^`r4Yu9R|CB=J^+zyoUa;=O0mXQ(ss8HM90Hi? mxk@$76j*!b7&q@vVPlYtjE_C~-KZZJ*bJVoelF{r5}E*wVxyb@ diff --git a/lib/jquery.uls/images/search.png b/lib/jquery.uls/images/search.png deleted file mode 100644 index 5c5d83df5654127072b5c536fce105b358bbeff6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 364 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VORAe@o6`%8LDJFWS)3_ z{@k09y06(!t0^g|dMT;12nzXK-e6d$x{7}e=X%c@&Od)R967>t{?p&NA1qT(&5iA7 zJXYAr;};fQx8%)&^bc-b=EkhcCY1GDlX