Fossil

Check-in [1621bd80]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make search case insensitive
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | file-filter
Files: files | file ages | folders
SHA1:1621bd80828c79daf5884747a2c7e67213ed4df7
User & Date: baruch 2014-12-23 09:05:25
Context
2014-12-24
08:44
Fix for older browsers check-in: 59062c3d user: baruch tags: file-filter
2014-12-23
09:05
Make search case insensitive check-in: 1621bd80 user: baruch tags: file-filter
2014-12-22
21:57
fix for last directory in list check-in: 3638635d user: baruch tags: file-filter
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/browse.c.

795
796
797
798
799
800
801

802
803
804
805
806
807
808
...
866
867
868
869
870
871
872

873
874
875

876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
  @         }else{
  @           node.children[j].classList.remove('last');
  @         }
  @       }
  @     }
  @   }
  @ }

  @ (function(){
  @ function isExpanded(ul){
  @   return ul.className=='';
  @ }
  @
  @ function toggleDir(ul, useInitValue){
  @   if( !useInitValue ){
................................................................................
  @   while( ul && ul.nodeName!='UL' ) ul = ul.nextSibling;
  @   if( !ul ) return true; /* This is a file link, not a directory */
  @   toggleDir(ul);
  @   return false;
  @ }
  @ fixLast();
  @ }())

  @ function filter_list(t){
  @   var outer_ul = document.querySelector('.filetree > ul');
  @   var links = outer_ul.querySelectorAll('.file a');

  @   for( var i = 0; i < links.length; i++ ){
  @     var node = links[i];
  @     if( node.innerHTML.lastIndexOf(t) == -1 ){
  @       node = node.parentNode.parentNode;
  @       node.hidden = true;
  @       node = node.parentNode;
  @       hide_parents_loop:
  @       while( node!=outer_ul && !node.parentNode.hidden ){
  @         for( var j = 0; j < node.children.length; j++ ){
  @           if( !node.children[j].hidden ) break hide_parents_loop;
  @         }
  @         node = node.parentNode;
  @         node.hidden = true;
  @         node = node.parentNode;
  @       }
  @     }else{
  @       node = node.parentNode.parentNode;
  @       node.hidden = false;
  @       node = node.parentNode;
  @       while( node!=outer_ul && node.parentNode.hidden ){
  @         node = node.parentNode;
  @         node.hidden = false;
  @         node = node.parentNode;
  @       }
  @     }







>







 







>



>


|













<
<







795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
...
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894


895
896
897
898
899
900
901
  @         }else{
  @           node.children[j].classList.remove('last');
  @         }
  @       }
  @     }
  @   }
  @ }
  @
  @ (function(){
  @ function isExpanded(ul){
  @   return ul.className=='';
  @ }
  @
  @ function toggleDir(ul, useInitValue){
  @   if( !useInitValue ){
................................................................................
  @   while( ul && ul.nodeName!='UL' ) ul = ul.nextSibling;
  @   if( !ul ) return true; /* This is a file link, not a directory */
  @   toggleDir(ul);
  @   return false;
  @ }
  @ fixLast();
  @ }())
  @
  @ function filter_list(t){
  @   var outer_ul = document.querySelector('.filetree > ul');
  @   var links = outer_ul.querySelectorAll('.file a');
  @   t = t.toUpperCase();
  @   for( var i = 0; i < links.length; i++ ){
  @     var node = links[i];
  @     if( node.innerHTML.toUpperCase().lastIndexOf(t) == -1 ){
  @       node = node.parentNode.parentNode;
  @       node.hidden = true;
  @       node = node.parentNode;
  @       hide_parents_loop:
  @       while( node!=outer_ul && !node.parentNode.hidden ){
  @         for( var j = 0; j < node.children.length; j++ ){
  @           if( !node.children[j].hidden ) break hide_parents_loop;
  @         }
  @         node = node.parentNode;
  @         node.hidden = true;
  @         node = node.parentNode;
  @       }
  @     }else{


  @       node = node.parentNode;
  @       while( node!=outer_ul && node.parentNode.hidden ){
  @         node = node.parentNode;
  @         node.hidden = false;
  @         node = node.parentNode;
  @       }
  @     }