Skip to content
Snippets Groups Projects
Commit 9ca41856 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

fix function naming

parent f16c7cd4
No related branches found
No related tags found
No related merge requests found
Pipeline #151274 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment