LP1834258 Replace Javascript with Placeholder Attribute
authorShula Link <slink@gchrl.org>
Tue, 13 Jul 2021 14:16:39 +0000 (10:16 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 24 Sep 2021 19:04:54 +0000 (15:04 -0400)
onfocus/onblur javascript replaced with placeholder="[% seed %]" in
Open-ILS/src/templates/kpac/getit.tt2 and
Open-ILS/src/templates/kpac/parts/searchbox.tt2

Signed-off-by: Shula Link <slink@gchrl.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates/kpac/getit.tt2
Open-ILS/src/templates/kpac/parts/searchbox.tt2

index a4d7469..5ae1fef 100644 (file)
@@ -40,9 +40,7 @@
                                     [% seed = l(' Enter Numbers... ') %]
                                     <p>[% l('Library Card Number without spaces:') %]</p>
                                     <div class="input_box">
-                                        <input name="username" type="text" class="text_box" style="color:#aaa;" value="[% seed %]" 
-                                            onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}" 
-                                            onblur="if(this.value==''){this.value='[% seed %]'; this.style.color='#aaa';}" />
+                                        <input name="username" type="text" class="text_box" style="color:#aaa;" placeholder="[% seed %]" />
                                     </div>
                                     <a class="help_btn" href="javascript:;" 
                                         onclick="helpPopup('card_help', this, event);"><img 
index 75c8ef8..c41ab6b 100644 (file)
@@ -4,9 +4,7 @@
         <input type="text" name='query' 
             value="[% CGI.param('nosprop') ? '' : CGI.param('query') | html %]"
             [% seed = l(' Enter Text... ') | html %]
-            class="sub_sidebar_search_box" style="color:#aaa;" value="[% seed %]"
-            onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}" 
-            onblur="if(this.value==''){this.value='[% seed %]'; this.style.color='#aaa';}" />
+            class="sub_sidebar_search_box" style="color:#aaa;" placeholder="[% seed %]" />
     </div>
     <table cellpadding="0" cellspacing="0" border="0" class="sub_sidebar_search_st">
         <tr>