Ticket #21845: 21845.diff
File 21845.diff, 850 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/js/edit-comments.js
313 313 }, 314 314 315 315 toggle : function(el) { 316 if ( $(el).css('display') != 'none' ) 317 $(el).find('a.vim-q').click(); 316 var replyrow = $('#replyrow'); 317 318 if ( $(el).css('display') != 'none' ) { 319 320 //Open reply box if it is not already open 321 if ( replyrow.parent().is('#com-reply') ) { 322 $(el).find('a.vim-q').click(); 323 } else { 324 if ( window.confirm( 'Are you sure you want to start quick editing a new comment?' ) ) { 325 $(el).find('a.vim-q').click(); 326 } 327 } 328 } 329 318 330 }, 319 331 320 332 revert : function() {