ffce5ab757
git-svn-id: https://develop.svn.wordpress.org/trunk@23495 602fd350-edb4-49c9-b593-d223f7449a82
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)); |