WordPress.org

Ready to get started?Download WordPress

Forums

Flamingo
[resolved] hide empty fields in admin inbound message (2 posts)

  1. fresh-x
    Member
    Posted 6 months ago #

    hey everyone,

    is there any solution to hide empty fields in the overview of the admin inbound messages? any little hack or something, that the inbound message overview dont show up all the fields they are send with the form.

    hoping anyone has an idea.
    best regards

    http://wordpress.org/plugins/flamingo/

  2. fresh-x
    Member
    Posted 6 months ago #

    i have a soluition, not the best way - but it works.
    if someone want the same, just add this after tbody in
    flamingo/admin/includes/meta-boxes.php line 163:

    <script>
    jQuery(document).ready(function() {
    jQuery('table tr.alt').each(function(){
        var hide = true;
        jQuery('td.field-value',this).each(function(){
            if (jQuery.trim(jQuery(this).text()) != "")
                hide = false;
        });
        if(hide)
            jQuery(this).closest('tr').hide();
    });
    });
    </script>

Reply

You must log in to post.

About this Plugin

About this Topic