diff --git a/frontend/js/apicalls.js b/frontend/js/apicalls.js index c3e58102e4ee692f9edb3f5856a8db61bceaf1bc..8005cd2eda4e7def9f5f20381ed0106fe18b91ab 100644 --- a/frontend/js/apicalls.js +++ b/frontend/js/apicalls.js @@ -125,10 +125,7 @@ function getMetadataPropertyHTMLString(property, value, readonly=true) { return '<tr id="' + randID + 'Row"><th scope="row"><input class="form-control dynamic-metadata" type="text" id="' + randID + '" value="' + safekey + (readonly ? '" readonly' : '"') + '></th><td><input class="form-control" type="text" id="' + randID + 'Input" value="' + safeval + (readonly ? '" readonly' : '"') + '></td><th><button type="button" class="btn btn-danger dynamic-metadata-button" onclick="removeMetadataRow(\'' + randID + '\')" id="' + randID + 'Button">-</button></th></tr>'; } -/** - * collect metadata from any present metadata inputs. If none are there, return an empty dict. - */ -function collectMetadata() { +function collectDeleteOIDs() { var oids = []; $('.dynamic-metadata').each( function() { var oid = this.id; @@ -137,7 +134,10 @@ function collectMetadata() { return oids; } -function collectDeleteOIDs() { +/** +* collect metadata from any present metadata inputs. If none are there, return an empty dict. +*/ +function collectMetadata() { var metadata = {}; $('.bulk-delete-checkboxes').each( function() { var id = this.id;