From a06884abe180891c09730983f2b8d13662c3fd34 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 16 Jul 2007 20:46:05 +0200 Subject: AJAX for the index view This makes the index view much more responsive by loading sub namespaces through AJAX if JavaScript is available. The used throbber image probably looks bad on dark backgrounds. If someone could provide a better one it would be greatly appreciated. darcs-hash:20070716184605-7ad00-adf298ee3303d50f2b4b6b66e5ea3ff8d8c2bf9a.gz --- inc/html.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index ea71df199..4f7ecc769 100644 --- a/inc/html.php +++ b/inc/html.php @@ -634,11 +634,14 @@ function html_index($ns){ } $ns = utf8_encodeFN(str_replace(':','/',$ns)); - print p_locale_xhtml('index'); + echo p_locale_xhtml('index'); + echo '
'; $data = array(); search($data,$conf['datadir'],'search_index',array('ns' => $ns)); - print html_buildlist($data,'idx','html_list_index','html_li_index'); + echo html_buildlist($data,'idx','html_list_index','html_li_index'); + + echo '
'; } /** -- cgit v1.2.3