From b15eff6c3bd9e7f58f912d2a6ce26ffb57e27592 Mon Sep 17 00:00:00 2001 From: Pierre Spring Date: Fri, 17 Sep 2010 17:57:33 +0200 Subject: starting to replace SACK by jQuery --- lib/scripts/index.js | 50 ++++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 26 deletions(-) (limited to 'lib/scripts/index.js') diff --git a/lib/scripts/index.js b/lib/scripts/index.js index 9c7943d0c..a27f0f4c6 100644 --- a/lib/scripts/index.js +++ b/lib/scripts/index.js @@ -72,40 +72,38 @@ var index = { return false; } - // prepare an AJAX call to fetch the subtree - var ajax = new sack(DOKU_BASE + 'lib/exe/ajax.php'); - ajax.AjaxFailedAlert = ''; - ajax.encodeURIString = false; - if(ajax.failed) return true; - //prepare the new ul - var ul = document.createElement('ul'); - ul.className = 'idx'; - timeout = window.setTimeout(function(){ + var ul = jQuery('