/[bfilter]/trunk/bfilter.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bfilter.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32 by dpavlin, Sat Sep 25 22:13:13 2004 UTC revision 37 by dpavlin, Tue Oct 19 15:45:52 2004 UTC
# Line 68  BFilter.prototype.element_id = function Line 68  BFilter.prototype.element_id = function
68  }  }
69    
70    
71  BFilter.prototype.show_status = function (status,no_hits) {  BFilter.prototype.show_status = function (query,no_hits) {
72          var html = "";          var html = "";
73          if (! no_hits) {          if (! no_hits) {
74                  if (this.hits > 0) {                  if (this.hits > 0) {
# Line 81  BFilter.prototype.show_status = function Line 81  BFilter.prototype.show_status = function
81                          status = "";                          status = "";
82                  }                  }
83          }          }
84            if (! query) {
85                    html = "Enter "+this.min_len+" letter"+(this.min_len == 1 ? '' : 's')+" to filter entries";
86                    query = "";
87            } else {
88                    query = " for <em>"+query+"</em>";
89            }
90    
91          var el = this.element_id("status");          var el = this.element_id("status");
92          el.innerHTML = html+status+"\n";          el.innerHTML = html+query+"\n";
93    
94          return true;          return true;
95  }  }
# Line 207  BFilter.prototype.show_filter = function Line 213  BFilter.prototype.show_filter = function
213    
214          // no part found          // no part found
215          if (! this.arr[part]) {          if (! this.arr[part]) {
216                  this.show_status(" for <em>"+user_filter+"</em><br>");                  this.show_status(user_filter);
217                  this.debug("no part "+part);                  this.debug("no part "+part);
218                  return;                  return;
219          }          }
# Line 246  BFilter.prototype.show_filter = function Line 252  BFilter.prototype.show_filter = function
252    
253          }          }
254    
255          this.show_status(" for <em>"+user_filter+"</em>");          this.show_status(user_filter);
256    
257  }  }
258    

Legend:
Removed from v.32  
changed lines
  Added in v.37

  ViewVC Help
Powered by ViewVC 1.1.26