diff --git a/templates/workflow/run.mako b/templates/workflow/run.mako index 48bb6e5514b..b0ceff21d12 100644 --- a/templates/workflow/run.mako +++ b/templates/workflow/run.mako @@ -75,7 +75,8 @@ $('span.multiinput_wrap select[name*="|input"]').removeAttr('multiple').each(function(i, s) { var select = $(s); var new_width = Math.max(200, select.width()) + 20; - select.parent().prev().append( + // Find the label for this element. + select.closest('.form-row').children('label').append( $('').click(function() { if ($(this).hasClass('disabled')) return; toggle_multiinput(select);