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 |
|
|
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 |
} |
} |