WordPress/wp-admin/js/edit-post.min.js

1 line
634 B
JavaScript

(function(a){a(document).on("heartbeat-tick.wp-check-locked",function(d,c){var b=c["wp-check-locked"]||{};a("#the-list tr").each(function(f,g){var e=g.id,h=a(g);if(b.hasOwnProperty(e)){if(!h.hasClass("wp-locked")){h.addClass("wp-locked").find(".column-title strong").after(a('<span class="lock-holder" />').text(b[e]))}h.find(".check-column checkbox").prop("checked",false)}else{if(h.hasClass("wp-locked")){h.removeClass("wp-locked").find(".column-title span.lock-holder").remove()}}})}).on("heartbeat-send.wp-check-locked",function(d,c){var b=[];a("#the-list tr").each(function(e,f){b.push(f.id)});c["wp-check-locked"]=b})}(jQuery));