RT# 32234 Use eye icon for link-replace_element_text widget
authorMitch Jackson <mitch@freeside.biz>
Mon, 21 Jan 2019 00:08:18 +0000 (19:08 -0500)
committerMitch Jackson <mitch@freeside.biz>
Mon, 21 Jan 2019 00:08:18 +0000 (19:08 -0500)
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
httemplate/elements/link-replace_element_text.html
httemplate/images/eye-20x20.png [new file with mode: 0644]
httemplate/images/eye-off-20x20.png [new file with mode: 0644]

index 570f503..1b9d10a 100644 (file)
@@ -170,5 +170,13 @@ http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org/Actions-documen
 licensed under GNU Lesser General Public License
 </P>
 
+
+<P>
+Contains icons from
+<A HREF="https://www.iconfinder.com/colebemis" TARGET="_blank">iconfinder.com</A>
+by Cole Bemis, licensed under the terms of the Creative Commons Attribution
+3.0 License.
+</p>
+
 </BODY>
 </HTML>
index 8e61195..0079fb5 100644 (file)
@@ -23,7 +23,7 @@ Usage:
 % if ($param{class}) {
    class="<% $param{class} %>"
 % }
-   onClick="$('#<% $param{target_id} %>').<% $param{jmethod} %>('<% $param{replace_text} |h %>');">&#x25C1;</a>
+   onClick="$('#<% $param{target_id} %>').<% $param{jmethod} %>('<% $param{replace_text} |h %>');"><% $param{link_text} %></a>
 <%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{<img src="${fsurl}images/eye.png">},
     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 (file)
index 0000000..e0206a1
Binary files /dev/null and b/httemplate/images/eye-20x20.png differ
diff --git a/httemplate/images/eye-off-20x20.png b/httemplate/images/eye-off-20x20.png
new file mode 100644 (file)
index 0000000..1d8f5f4
Binary files /dev/null and b/httemplate/images/eye-off-20x20.png differ