diff options
author | Pierre Spring <pierre.spring@caillou.ch> | 2010-09-23 14:17:28 +0200 |
---|---|---|
committer | Pierre Spring <pierre.spring@caillou.ch> | 2010-09-27 11:52:16 +0200 |
commit | fbb6cb3392060468d042012aaa8bf5f0689cebff (patch) | |
tree | 97165df6824fd2a4c51651c985dce978514c3727 /lib/scripts | |
parent | f222078ec90e38d2b3b548015e2a1d7bedea2c8d (diff) | |
download | rpg-fbb6cb3392060468d042012aaa8bf5f0689cebff.tar.gz rpg-fbb6cb3392060468d042012aaa8bf5f0689cebff.tar.bz2 |
using POST instead of GET, as the DW API behaves in a wierd way when using POST
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; |