mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-04 11:51:19 +02:00
git-svn-id: http://core.svn.wordpress.org/trunk@23495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
634 B
JavaScript
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)); |