From fbb6cb3392060468d042012aaa8bf5f0689cebff Mon Sep 17 00:00:00 2001 From: Pierre Spring Date: Thu, 23 Sep 2010 14:17:28 +0200 Subject: using POST instead of GET, as the DW API behaves in a wierd way when using POST --- lib/scripts/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/scripts/index.js') 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; -- cgit v1.2.3