Make WordPress Core

Ticket #26596: wp_allow_radio_repy_comments.diff

File wp_allow_radio_repy_comments.diff, 719 bytes (added by corretge, 10 years ago)

allow radio buttons on wpAdmin comments

  • wp-admin/js/edit-comments.js

     
    470470
    471471                $('#replyrow input').not(':button').each(function() {
    472472                        var t = $(this);
    473                         post[ t.attr('name') ] = t.val();
     473                        /*
     474                         * allow radio buttons in admin section or reply commentaries
     475                         * @issue http://core.trac.wordpress.org/ticket/26596
     476                         */
     477                        if (t.is(':radio'))
     478                        {
     479                                if (t.prop("checked") == true)
     480                                {
     481                                        post[ t.attr('name') ] = t.val();
     482                                }
     483                        }
     484                        else
     485                        {
     486                                post[ t.attr('name') ] = t.val();
     487                        }
    474488                });
    475489
    476490                post.content = $('#replycontent').val();