diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-16 20:46:05 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-16 20:46:05 +0200 |
commit | a06884abe180891c09730983f2b8d13662c3fd34 (patch) | |
tree | ee5c49faf32390245e1cf3c720a642e148c775a3 /inc/html.php | |
parent | 40cc87038bae8c160922eca41f9f9dde28b04cb5 (diff) | |
download | rpg-a06884abe180891c09730983f2b8d13662c3fd34.tar.gz rpg-a06884abe180891c09730983f2b8d13662c3fd34.tar.bz2 |
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
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 7 |
1 files changed, 5 insertions, 2 deletions
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 '<div id="index__tree">'; $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 '</div>'; } /** |