aboutsummaryrefslogtreecommitdiffstats
path: root/files/index.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-17 15:59:06 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-17 15:59:06 +0200
commitee4d087e72ab9a91baf0681a5d4ee6582ba4fd37 (patch)
tree44ec735e0229cda9fc169f4306441d4a6fe99e14 /files/index.php
parent4b0a3163c8e7b89f51c130736cdb5fa98a934ded (diff)
downloadnextcloud-server-ee4d087e72ab9a91baf0681a5d4ee6582ba4fd37.tar.gz
nextcloud-server-ee4d087e72ab9a91baf0681a5d4ee6582ba4fd37.zip
don't reload the whole page after file upload
Diffstat (limited to 'files/index.php')
-rw-r--r--files/index.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/files/index.php b/files/index.php
index e07e80aabb5..28743f77fca 100644
--- a/files/index.php
+++ b/files/index.php
@@ -55,10 +55,15 @@ foreach( explode( "/", $dir ) as $i ){
}
}
-// return template
+// make breadcrumb und filelist markup
+$list = new OC_TEMPLATE( "files", "part.list", "" );
+$list->assign( "files", $files );
+$breadcrumbNav = new OC_TEMPLATE( "files", "part.breadcrumb", "" );
+$breadcrumbNav->assign( "breadcrumb", $breadcrumb );
+
$tmpl = new OC_TEMPLATE( "files", "index", "user" );
-$tmpl->assign( "files", $files );
-$tmpl->assign( "breadcrumb", $breadcrumb );
+$tmpl->assign( "fileList", $list->fetchPage() );
+$tmpl->assign( "breadcrumb", $breadcrumbNav->fetchPage() );
$tmpl->assign( 'dir', $dir);
$tmpl->assign( 'uploadMaxFilesize', OC_HELPER::computerFileSize(ini_get('upload_max_filesize')));
$tmpl->printPage();