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-22 10:06 am

[dw-free] Revamp /update

[commit: http://hg.dwscoalition.org/dw-free/rev/6bd16c2235b1]

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

Run filter on click (lets us clear when we click the x for the search box)

Patch by [personal profile] fu.

Files modified:
  • htdocs/js/jquery.iconselector.js
  • htdocs/js/jquery.tagselector.js
--------------------------------------------------------------------------------
diff -r 87730fdeb65e -r 6bd16c2235b1 htdocs/js/jquery.iconselector.js
--- a/htdocs/js/jquery.iconselector.js	Thu Dec 22 18:04:11 2011 +0800
+++ b/htdocs/js/jquery.iconselector.js	Thu Dec 22 18:06:03 2011 +0800
@@ -191,7 +191,7 @@
 
             $("button", $.fn.iconselector.instance.siblings()).attr("disabled", "true");
             $(":input", $.fn.iconselector.instance).attr("disabled", "true");
-            $("#iconselector_search", $.fn.iconselector.instance).bind("keyup", _filterPics);
+            $("#iconselector_search", $.fn.iconselector.instance).bind("keyup click", _filterPics);
 
             var url = Site.currentJournalBase ? "/" + Site.currentJournal + "/__rpc_userpicselect" : "/__rpc_userpicselect";
             $.getJSON(url,
diff -r 87730fdeb65e -r 6bd16c2235b1 htdocs/js/jquery.tagselector.js
--- a/htdocs/js/jquery.tagselector.js	Thu Dec 22 18:04:11 2011 +0800
+++ b/htdocs/js/jquery.tagselector.js	Thu Dec 22 18:06:03 2011 +0800
@@ -156,7 +156,7 @@
                 - 5
             );
 
-            $("#tagselector_search").bind("keyup", _filter);
+            $("#tagselector_search").bind("keyup click", _filter);
             $("#tagselector_select").click(_save);
 
             _initTags();
--------------------------------------------------------------------------------