WordPress/wp-admin/js/edit-post.min.js
Bot (Assets) a38763c2be Compress scripts/styles: 3.6-alpha-23495.
git-svn-id: http://core.svn.wordpress.org/trunk@23495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-26 22:58:42 +00:00

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));