diff options
author | Pierre Spring <pierre.spring@caillou.ch> | 2010-09-23 14:17:28 +0200 |
---|---|---|
committer | Pierre Spring <pierre.spring@caillou.ch> | 2010-10-10 17:29:20 +0200 |
commit | 7def82c02606c39102316009184138cdcbd904d3 (patch) | |
tree | 40e77db20227c6487f4f09f6249e29f696cb77c0 /lib/scripts/index.js | |
parent | b15eff6c3bd9e7f58f912d2a6ce26ffb57e27592 (diff) | |
download | dokuwiki-7def82c02606c39102316009184138cdcbd904d3.tar.gz dokuwiki-7def82c02606c39102316009184138cdcbd904d3.zip |
using POST instead of GET, as the DW API behaves in a wierd way when using POST
Diffstat (limited to 'lib/scripts/index.js')
-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; |