Refresh grid when upload is complete

pull/1/head
Victor Dubiniuk 11 years ago
parent c7842925f9
commit 248165d091

@ -162,7 +162,7 @@
font-size:1em;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter:alpha(opacity=0); opacity:0;
z-index:20;
}
}
/* override WebODF styling here */
@ -185,3 +185,4 @@
background-color: #ddd !important;
top: 38px !important;
}

@ -36,7 +36,7 @@ namespace OCA\Documents;
\OCP\Util::addScript('files', 'file-upload');
\OCP\Util::addScript('files', 'jquery.iframe-transport');
\OCP\Util::addScript('files', 'jquery.fileupload');
\OCP\Util::addScript('files', 'upload');
$tmpl = new \OCP\Template('documents', 'documents', 'user');
$maxUploadFilesize = \OCP\Util::maxUploadFilesize("/");

@ -314,6 +314,8 @@ $(document).ready(function() {
});
documentsMain.show();
var file_upload_start = $('#file_upload_start');
file_upload_start.on('fileuploaddone', documentsMain.show);
//TODO show "no docs, please upload"
//TODO when ending a session as the last user close session?

Loading…
Cancel
Save