fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-12-05 04:07 am

[dw-free] Revamp /update

[commit: http://hg.dwscoalition.org/dw-free/rev/8aa21b26f04b]

http://bugs.dwscoalition.org/show_bug.cgi?id=2524

Turn the text box in tagselector/iconselector into type search to take
advantage of features more modern browsers put in.

Patch by [personal profile] fu.

Files modified:
  • htdocs/js/jquery.iconselector.js
  • htdocs/js/jquery.tagselector.js
--------------------------------------------------------------------------------
diff -r e5a00a5bb123 -r 8aa21b26f04b htdocs/js/jquery.iconselector.js
--- a/htdocs/js/jquery.iconselector.js	Sat Dec 03 23:01:13 2011 +0800
+++ b/htdocs/js/jquery.iconselector.js	Mon Dec 05 12:07:12 2011 +0800
@@ -36,7 +36,7 @@
             return "<div>\
       <div class='iconselector_top'>\
         <span class='iconselector_searchbox'>\
-          Search: <input type='text' id='iconselector_search'>\
+          Search: <input type='search' id='iconselector_search'>\
           </span>\
         <span class='image-text-toggle' id='iconselector_image_text_toggle'>\
           <span class='toggle-image-only'><a href='#' class='image_only'>Images only</a> / Show meta text</span>\
diff -r e5a00a5bb123 -r 8aa21b26f04b htdocs/js/jquery.tagselector.js
--- a/htdocs/js/jquery.tagselector.js	Sat Dec 03 23:01:13 2011 +0800
+++ b/htdocs/js/jquery.tagselector.js	Mon Dec 05 12:07:12 2011 +0800
@@ -112,7 +112,7 @@
             return "<div>\
       <div class='tagselector_top'>\
         <span class='tagselector_searchbox'>\
-          Search: <input type='text' id='tagselector_search'>\
+          Search: <input type='search' id='tagselector_search'>\
           </span>\
           <button id='tagselector_select' class='ui-state-default' disabled='disabled'>Save</button>\
       </div>\
--------------------------------------------------------------------------------