From 2f418341c06bbcf451702e277c4b52c28f3a0759 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sun, 20 Jan 2019 19:08:18 -0500 Subject: [PATCH] RT# 32234 Use eye icon for link-replace_element_text widget Icons from icon set Feather: https://www.iconfinder.com/iconsets/feather Icons authored by Cole Bemis https://www.iconfinder.com/colebemis Icons licensed under the terms of the Creative Commons Attribution 3.0 License https://creativecommons.org/licenses/by/3.0/ License: --- httemplate/docs/license.html | 8 ++++++++ httemplate/elements/link-replace_element_text.html | 4 ++-- httemplate/images/eye-20x20.png | Bin 0 -> 404 bytes httemplate/images/eye-off-20x20.png | Bin 0 -> 490 bytes 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 httemplate/images/eye-20x20.png create mode 100644 httemplate/images/eye-off-20x20.png diff --git a/httemplate/docs/license.html b/httemplate/docs/license.html index 570f503d6..1b9d10a53 100644 --- a/httemplate/docs/license.html +++ b/httemplate/docs/license.html @@ -170,5 +170,13 @@ http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org/Actions-documen licensed under GNU Lesser General Public License

+ +

+Contains icons from +iconfinder.com +by Cole Bemis, licensed under the terms of the Creative Commons Attribution +3.0 License. +

+ diff --git a/httemplate/elements/link-replace_element_text.html b/httemplate/elements/link-replace_element_text.html index 8e611954c..0079fb584 100644 --- a/httemplate/elements/link-replace_element_text.html +++ b/httemplate/elements/link-replace_element_text.html @@ -23,7 +23,7 @@ Usage: % if ($param{class}) { class="<% $param{class} %>" % } - onClick="$('#<% $param{target_id} %>').<% $param{jmethod} %>('<% $param{replace_text} |h %>');">◁ + onClick="$('#<% $param{target_id} %>').<% $param{jmethod} %>('<% $param{replace_text} |h %>');"><% $param{link_text} %> <%init> die "template call requires a parameter hashref" unless ref $_[0]; @@ -34,7 +34,7 @@ my %param = ( replace_text => 'REPLACEMENT_TEXT_FOR_INPUT_ELEMENT', element_type => 'input', - link_text => '%#x25C1;', # ◁ + link_text => qq{}, href => 'javascript:void(0)', style => 'text-decoration:none;', class => undef, diff --git a/httemplate/images/eye-20x20.png b/httemplate/images/eye-20x20.png new file mode 100644 index 0000000000000000000000000000000000000000..e0206a1d2ccb2f859f9d60f9e97afc8819646cd9 GIT binary patch literal 404 zcmV;F0c-w=P)z)V(f5Q4k04pKr?pNVFshjjs^9Pl8tA4fYj8Jc2@^ z5jPPZ5fTqUAu5X9LZuT#kX78-xUR+Bt^AWo?)}gIoSAdx%<$jQ^@o2H(-@2YTU_9- z-9Tj=;th?Qy@jt_WTQT;;~lTq!!j1bmVOSwU9$XVWI11ldlbpa~9AP+@Ssf3khCKwA z&2$J?c)}!{NiTRYmvto~S2J8SxJphtFRlK0H=aZElD~&eF@k$s`d*AyN3Qwf$gmVy z?xQ;+&KITTdr^+%iqb?9jxAr`RY%XJDL4(m6=qtA0)-wnX}4_pY`p|4(!MRnccNhH yWl_d~pNGSNABIDb@im3<_`i|9hPKDo|G@`&K4u$Zr(qcY0000T)Vpg`Q4j|3-zImBUPKE)NMYv#1PiUAg(BLeP6|`_ z!otc*&5@0{;^d^2-q zU{)OTPXzxTgjz^i2VL3f16|;{8?5iVt8h|%=(SY2++ zu|LE`>79<@3jPjYf5koy$3yOF$ggZazQwwoDP0~=I)M-PBc%^q5AfqqQQ74nte(<( zP53v%cQ2RRvRTz`jnWw@r={&3br`p*aC0m1I>4W$$6IFw-rCwxJ6c<6rwyrC-3aLd zF5!;U$Ne~OJf)`MV$b&B(8m*;P%}_kHDtL>;xvw855D3Z*5bU7I%QTGEOWalZDM(w gc1A&1k#?~1AKjRGAe-x{V*mgE07*qoM6N<$f?#vfl>h($ literal 0 HcmV?d00001 -- 2.11.0