fix the refresh error in firefox with message no files to be displayed
@@ -1099,11 +1099,15 @@ $(document).ready(function () {
pathLog.push("data/contents");
pathLogIndex = pathLog.length - 1;
- refreshFileBrowser();
- $("#previews").empty();
if(resourceType === 'Composite Resource') {
+ // uploaded files can affect metadata in composite resource.
+ // a full refresh is needed to reflect those changes
refreshResourceEditPage();
}
+ else {
+ refreshFileBrowser();
+ $("#previews").empty();
+ }
}
});
