2013-02-26 17:58:42 -05:00
|
|
|
(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));
|