מדיה ויקי:Gadget-toggleRCOptions.js: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 43: | שורה 43: | ||
var option = document.createElement('OPTION'); | var option = document.createElement('OPTION'); | ||
option.text = 'תוצאה ' + counter; | option.text = 'תוצאה ' + counter; | ||
option.title = findThis; | // option.title = findThis; | ||
option.value = foundIndex; | // option.value = foundIndex; | ||
option.onselectstart = function() { showFound(findThis, foundIndex);return false; }; | |||
results.add(option); | results.add(option); | ||
fromIndex = foundIndex + findThis.length; | fromIndex = foundIndex + findThis.length; | ||
| שורה 90: | שורה 91: | ||
option.text = 'מחכה...'; | option.text = 'מחכה...'; | ||
option.disabled = true; | option.disabled = true; | ||
// foundResults.onchange = function() { showFound(this[this.selectedIndex].title,this[this.selectedIndex].value); }; | |||
foundResults.add(option); | foundResults.add(option); | ||