changeset 4474:ebbaebaae058

templates: replace YUI with jquery in kallithea/templates/index_base.html
author Takumi IINO <trot.thunder@gmail.com>
date Tue, 22 Jul 2014 00:46:25 +0900
parents deeafcf167de
children a981ac4ab11e
files kallithea/templates/index_base.html
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/index_base.html	Tue Jul 22 00:46:25 2014 +0900
+++ b/kallithea/templates/index_base.html	Tue Jul 22 00:46:25 2014 +0900
@@ -169,19 +169,19 @@
             });
 
         };
-        YUE.on('q_filter','click',function(){
-            if(!YUD.hasClass('q_filter', 'loaded')){
+        $('#q_filter').click(function(){
+            if(!$('#q_filter').hasClass('loaded')){
                 //TODO: load here full list later to do search within groups
-                YUD.addClass('q_filter', 'loaded');
+                $('#q_filter').addClass('loaded');
             }
         });
 
-        YUE.on('q_filter','keyup',function (e) {
+        $('#q_filter').keyup(function(){
             clearTimeout(filterTimeout);
             filterTimeout = setTimeout(updateFilter,600);
         });
 
-        if(YUD.get('q_filter').value) {
+        if($('#q_filter').val()) {
             updateFilter();
         }
       </script>