summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPierre Spring <pierre.spring@caillou.ch>2010-09-23 14:17:28 +0200
committerPierre Spring <pierre.spring@caillou.ch>2010-10-10 17:29:20 +0200
commit7def82c02606c39102316009184138cdcbd904d3 (patch)
tree40e77db20227c6487f4f09f6249e29f696cb77c0 /lib
parentb15eff6c3bd9e7f58f912d2a6ce26ffb57e27592 (diff)
downloadrpg-7def82c02606c39102316009184138cdcbd904d3.tar.gz
rpg-7def82c02606c39102316009184138cdcbd904d3.tar.bz2
using POST instead of GET, as the DW API behaves in a wierd way when using POST
Diffstat (limited to 'lib')
-rw-r--r--lib/scripts/index.js12
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;