I think the easiest solution is to update the code found on line 230 from:
onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAGalleryTable['gID']); ?>;document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';"
to:
onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAGalleryTable['gID']); ?>;WADFP_jQuery('#Delete').click();"