Skip to content

Instantly share code, notes, and snippets.

@dennmuel
dennmuel / 90_hide_mail_fields.js
Created June 4, 2019 06:23
Hide id subfield in eprints workflow
function hideMailfield() {
var ths = document.querySelectorAll('[id*="_creators_th_"], [id*="_editors_th_"]');
var inputs = document.querySelectorAll('[class*="ep_eprint_creators_id"], [class*="ep_eprint_editors_id"]');
var tds = [];
ths.forEach(function(item) {
if (/^.*mail.*$/gmi.test(item.innerHTML))
{
item.style.display = "none";
}