fix for get file metadata ajax call
@@ -399,6 +399,9 @@ function bindFileBrowserItemEvents() {
function showFileTypeMetadata(){
var logical_file_id = $("#fb-files-container li.ui-selected").attr("data-logical-file-id");
+ if (logical_file_id.length == 0){
+ return;
+ }
var logical_type = $("#fb-files-container li").children('span.fb-logical-file-type').attr("data-logical-file-type");
var resource_mode = $("#resource-mode").val();
resource_mode = resource_mode.toLowerCase();
