From 3c789fd5569aac2004b9f89ca5196e292ccaecea Mon Sep 17 00:00:00 2001 From: Mike Sawicki Date: Fri, 31 May 2019 14:01:41 -0400 Subject: [PATCH] addresses an issue with instances where there could be multiple .form-table --- js/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/index.js b/js/index.js index c52e929..077d451 100644 --- a/js/index.js +++ b/js/index.js @@ -5,6 +5,10 @@ */ jQuery(document).ready( function($) { + // Unforunently, there's no hooks or filters so we need to "hack" this `tr` row into the table. + const table = $('.form-table').first().find('tr:nth-child(1)'); + $('#psdn--tr-row').insertAfter(table); + // Unforunently, there's no hooks or filters so we need to "hack" this `tr` row into the table. $('#psdn--tr-row').insertAfter('table.form-table tr:nth-child(1)');