diff options
Diffstat (limited to 'lib/scripts')
-rw-r--r-- | lib/scripts/index.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/scripts/index.js b/lib/scripts/index.js index a27f0f4c6..ff0cd7692 100644 --- a/lib/scripts/index.js +++ b/lib/scripts/index.js @@ -84,22 +84,24 @@ var index = { } }, this.throbber_delay); - ul.load( + jQuery.post( DOKU_BASE + 'lib/exe/ajax.php', clicky.search.substr(1)+'&call=index', - function () { + function (data) { window.clearTimeout(timeout); - index.treeattach(this); + ul.html(data); + index.treeattach(ul[0]); if (listitem.className!='open') { if (!listitem.open) { this.style.display='none'; } - listitem.appendChild(this); + listitem.appendChild(ul[0]); if (listitem.open) { listitem.className='open'; } } - } + }, + 'html' ); e.preventDefault(); return; |