/[jquery]/tag_complete/jquery-tac.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 /tag_complete/jquery-tac.js

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

revision 54 by dpavlin, Sun Aug 20 03:35:32 2006 UTC revision 55 by dpavlin, Sun Aug 20 13:06:28 2006 UTC
# Line 117  tac.prototype.suggest = function( partia Line 117  tac.prototype.suggest = function( partia
117    
118                          jQuery.className.add( this.t.obj[t], 'suggested' );                          jQuery.className.add( this.t.obj[t], 'suggested' );
119    
120                          suggest += '<a href="#'+i+'"';                          suggest += '<a href="#"';
121                          if (this.suggested.length == 0) suggest += ' class="suggested" ';                          if (this.suggested.length == 0) suggest += ' class="suggested" ';
122                          suggest += ' onclick="javascript:return this.tag(\'' + t + '\')">' +                          suggest += '">' + t + '</a> ';
                                 t + '</a> ';  
123                          this.suggested.push(t);                          this.suggested.push(t);
124                  }                  }
125          }          }
126    
127          $(this.suggest_selector).html( suggest );          $(this.suggest_selector).html( suggest );
128            var obj = this;
129            $(this.suggest_selector+' a').click( function() {
130                    var t = this.firstChild.nodeValue;
131                    $.log.debug('click add: '+ t);
132                    obj.clean_suggested();
133                    obj.tag( t );
134            });
135          this.current_suggested = 0;          this.current_suggested = 0;
136          $.log.info('suggested ' + this.suggested.length + ' tags');          $.log.info('suggested ' + this.suggested.length + ' tags');
137    
# Line 161  tac.prototype.take_suggested = function( Line 167  tac.prototype.take_suggested = function(
167          }          }
168    
169          var i = this.suggested[c].i;          var i = this.suggested[c].i;
170          $.log.debug('take_suggested '+i+':'+s);          $.log.debug('take_suggested: '+s);
171          this.add_tag( s );          this.add_tag( s );
172          return false;          return false;
173  }  }

Legend:
Removed from v.54  
changed lines
  Added in v.55

  ViewVC Help
Powered by ViewVC 1.1.26