Make WordPress Core

Ticket #25606: edit-comments.js.diff

File edit-comments.js.diff, 616 bytes (added by mt8.biz, 11 years ago)
  • src/wp-admin/js/edit-comments.js

     
    449449        },
    450450
    451451        send : function() {
     452                if ( commentReply.isSending() )
     453                        return false;
     454
    452455                var post = {};
    453456
    454457                $('#replysubmit .error').hide();
     
    553556                        $('table.comments-box').css('display', '');
    554557                        $('#no-comments').remove();
    555558                });
     559        },
     560
     561        isSending: function(){
     562                return $('#replysubmit .spinner').is(':visible');
    556563        }
     564
    557565};
    558566
    559567$(document).ready(function(){