diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js
index e7a9282d4b..a4f90453ed 100644
|
a
|
b
|
window.commentReply = { |
| 1150 | 1150 | |
| 1151 | 1151 | id = $(id); |
| 1152 | 1152 | t.addEvents(id); |
| 1153 | | bg = id.hasClass('unapproved') ? '#FFFFE0' : id.closest('.widefat, .postbox').css('backgroundColor'); |
| | 1153 | bg = id.hasClass('unapproved') ? '#FFFFE0' : id.closest('table.wp-list-table, .postbox').css('backgroundColor'); |
| 1154 | 1154 | |
| 1155 | 1155 | id.animate( { 'backgroundColor':'#CCEEBB' }, 300 ) |
| 1156 | 1156 | .animate( { 'backgroundColor': bg }, 300, function() { |
| … |
… |
$( function(){ |
| 1311 | 1311 | }; |
| 1312 | 1312 | |
| 1313 | 1313 | $.table_hotkeys( |
| 1314 | | $('table.widefat'), |
| | 1314 | $('table.wp-list-table'), |
| 1315 | 1315 | [ |
| 1316 | 1316 | 'a', 'u', 's', 'd', 'r', 'q', 'z', |
| 1317 | 1317 | ['e', edit_comment], |
diff --git a/src/js/_enqueues/admin/inline-edit-post.js b/src/js/_enqueues/admin/inline-edit-post.js
index c26f2ddc79..75f027b8d6 100644
|
a
|
b
|
window.wp = window.wp || {}; |
| 42 | 42 | init : function(){ |
| 43 | 43 | var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit'); |
| 44 | 44 | |
| 45 | | t.type = $('table.widefat').hasClass('pages') ? 'page' : 'post'; |
| | 45 | t.type = $('table.wp-list-table').hasClass('pages') ? 'page' : 'post'; |
| 46 | 46 | // Post ID prefix. |
| 47 | 47 | t.what = '#post-'; |
| 48 | 48 | |
| … |
… |
window.wp = window.wp || {}; |
| 180 | 180 | var te = '', type = this.type, c = true; |
| 181 | 181 | this.revert(); |
| 182 | 182 | |
| 183 | | $( '#bulk-edit td' ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length ); |
| | 183 | $( '#bulk-edit td' ).attr( 'colspan', $( 'th:visible, td:visible', 'table.wp-list-table:first thead' ).length ); |
| 184 | 184 | |
| 185 | 185 | // Insert the editor at the top of the table with an empty row above to maintain zebra striping. |
| 186 | | $('table.widefat tbody').prepend( $('#bulk-edit') ).prepend('<tr class="hidden"></tr>'); |
| | 186 | $('table.wp-list-table tbody').prepend( $('#bulk-edit') ).prepend('<tr class="hidden"></tr>'); |
| 187 | 187 | $('#bulk-edit').addClass('inline-editor').show(); |
| 188 | 188 | |
| 189 | 189 | /** |
| … |
… |
window.wp = window.wp || {}; |
| 228 | 228 | $prev = $this.parent().prev().children( '.ntdelbutton' ), |
| 229 | 229 | $next = $this.parent().next().children( '.ntdelbutton' ); |
| 230 | 230 | |
| 231 | | $( 'table.widefat input[value="' + id + '"]' ).prop( 'checked', false ); |
| | 231 | $('table.wp-list-table input[value="' + id + '"]').prop('checked', false); |
| 232 | 232 | $( '#_' + id ).parent().remove(); |
| 233 | 233 | wp.a11y.speak( wp.i18n.__( 'Item removed.' ), 'assertive' ); |
| 234 | 234 | |
| … |
… |
window.wp = window.wp || {}; |
| 292 | 292 | |
| 293 | 293 | // Add the new edit row with an extra blank row underneath to maintain zebra striping. |
| 294 | 294 | editRow = $('#inline-edit').clone(true); |
| 295 | | $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length ); |
| | 295 | $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', 'table.wp-list-table:first thead' ).length ); |
| 296 | 296 | |
| 297 | 297 | // Remove the ID from the copied row and let the `for` attribute reference the hidden ID. |
| 298 | 298 | $( 'td', editRow ).find('#quick-edit-legend').removeAttr('id'); |
| … |
… |
window.wp = window.wp || {}; |
| 433 | 433 | id = this.getId(id); |
| 434 | 434 | } |
| 435 | 435 | |
| 436 | | $( 'table.widefat .spinner' ).addClass( 'is-active' ); |
| | 436 | $( 'table.wp-list-table .spinner' ).addClass( 'is-active' ); |
| 437 | 437 | |
| 438 | 438 | params = { |
| 439 | 439 | action: 'inline-save', |
| … |
… |
window.wp = window.wp || {}; |
| 452 | 452 | var $errorNotice = $( '#edit-' + id + ' .inline-edit-save .notice-error' ), |
| 453 | 453 | $error = $errorNotice.find( '.error' ); |
| 454 | 454 | |
| 455 | | $( 'table.widefat .spinner' ).removeClass( 'is-active' ); |
| | 455 | $( 'table.wp-list-table .spinner' ).removeClass( 'is-active' ); |
| 456 | 456 | |
| 457 | 457 | if (r) { |
| 458 | 458 | if ( -1 !== r.indexOf( '<tr' ) ) { |
| … |
… |
window.wp = window.wp || {}; |
| 493 | 493 | * @return {boolean} Always returns false. |
| 494 | 494 | */ |
| 495 | 495 | revert : function(){ |
| 496 | | var $tableWideFat = $( '.widefat' ), |
| | 496 | var $tableWideFat = $( 'table.wp-list-table' ), |
| 497 | 497 | id = $( '.inline-editor', $tableWideFat ).attr( 'id' ); |
| 498 | 498 | |
| 499 | 499 | if ( id ) { |
diff --git a/src/js/_enqueues/admin/inline-edit-tax.js b/src/js/_enqueues/admin/inline-edit-tax.js
index 86e3498cd1..a46e993520 100644
|
a
|
b
|
window.inlineEditTax = { |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id); |
| 131 | | $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.wp-list-table.widefat:first thead' ).length ); |
| | 131 | $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.wp-list-table:first thead' ).length ); |
| 132 | 132 | |
| 133 | 133 | $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>'); |
| 134 | 134 | |
| … |
… |
window.inlineEditTax = { |
| 172 | 172 | id = this.getId(id); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | | $( 'table.widefat .spinner' ).addClass( 'is-active' ); |
| | 175 | $( 'table.wp-list-table .spinner' ).addClass( 'is-active' ); |
| 176 | 176 | |
| 177 | 177 | params = { |
| 178 | 178 | action: 'inline-save-tax', |
| … |
… |
window.inlineEditTax = { |
| 199 | 199 | $errorNotice = $( '#edit-' + id + ' .inline-edit-save .notice-error' ), |
| 200 | 200 | $error = $errorNotice.find( '.error' ); |
| 201 | 201 | |
| 202 | | $( 'table.widefat .spinner' ).removeClass( 'is-active' ); |
| | 202 | $( 'table.wp-list-table .spinner' ).removeClass( 'is-active' ); |
| 203 | 203 | |
| 204 | 204 | if (r) { |
| 205 | 205 | if ( -1 !== r.indexOf( '<tr' ) ) { |
| … |
… |
window.inlineEditTax = { |
| 258 | 258 | * @return {void} |
| 259 | 259 | */ |
| 260 | 260 | revert : function() { |
| 261 | | var id = $('table.widefat tr.inline-editor').attr('id'); |
| | 261 | var id = $('table.wp-list-table tr.inline-editor').attr('id'); |
| 262 | 262 | |
| 263 | 263 | if ( id ) { |
| 264 | | $( 'table.widefat .spinner' ).removeClass( 'is-active' ); |
| | 264 | $( 'table.wp-list-table .spinner' ).removeClass( 'is-active' ); |
| 265 | 265 | $('#'+id).siblings('tr.hidden').addBack().remove(); |
| 266 | 266 | id = id.substr( id.lastIndexOf('-') + 1 ); |
| 267 | 267 | |
diff --git a/src/js/_enqueues/admin/post.js b/src/js/_enqueues/admin/post.js
index c9b002a65a..5775f8c903 100644
|
a
|
b
|
window.wp = window.wp || {}; |
| 61 | 61 | data, |
| 62 | 62 | function(r) { |
| 63 | 63 | r = wpAjax.parseAjaxResponse(r); |
| 64 | | $('#commentsdiv .widefat').show(); |
| | 64 | $('#commentsdiv table.comments-box').show(); |
| 65 | 65 | $( '#commentsdiv .spinner' ).removeClass( 'is-active' ); |
| 66 | 66 | |
| 67 | 67 | if ( 'object' == typeof r && r.responses[0] ) { |