167 |
hopefully, this implementation won't break when I update prototype next time :-) |
hopefully, this implementation won't break when I update prototype next time :-) |
168 |
*/ |
*/ |
169 |
|
|
170 |
Object.extend(Object.extend(Ajax.Autocompleter.prototype, Autocompleter.Base.prototype), { |
|
171 |
|
Ajax.Suggest = Class.create(); |
172 |
|
Logger.debug('Created Ajax.Suggest Class'); |
173 |
|
Object.extend(Object.extend(Ajax.Suggest.prototype, Ajax.Autocompleter.prototype), { |
174 |
initialize: function(element, update, url, options) { |
initialize: function(element, update, url, options) { |
175 |
this.baseInitialize(element, update, options); |
this.baseInitialize(element, update, options); |
176 |
this.options.asynchronous = true; |
this.options.asynchronous = true; |
179 |
this.url = url; |
this.url = url; |
180 |
this.ignoreReturn = true; |
this.ignoreReturn = true; |
181 |
|
|
182 |
|
Logger.debug('Ajax.Sugget initialize '+element+','+update+','+url); |
183 |
|
|
184 |
this.options.onShow = function(element, update) { |
this.options.onShow = function(element, update) { |
185 |
if(!update.style.position || update.style.position=='absolute') { |
if(!update.style.position || update.style.position=='absolute') { |
186 |
update.style.position = 'absolute'; |
update.style.position = 'absolute'; |
223 |
markNext: function() { |
markNext: function() { |
224 |
if(this.index < this.entryCount-1) this.index++ |
if(this.index < this.entryCount-1) this.index++ |
225 |
// else this.index = 0; |
// else this.index = 0; |
226 |
}, |
} |
227 |
|
|
228 |
}); |
}); |
229 |
|
|
230 |
|
|