Current Path : /var/test/www/html/wp-content/plugins/gravityforms/includes/locking/js/ |
Current File : /var/test/www/html/wp-content/plugins/gravityforms/includes/locking/js/locking-list.min.js |
!function(a,b){function c(){var a="gform-check-locked-objects-"+d;wp.heartbeat.interval(30),b(document).on("heartbeat-tick."+a,function(c,d){var e=d[a]||{};b(".gf-locking").each(function(a,c){var d,f,g,h=b(c);d=h.data("id"),e.hasOwnProperty(d)?h.hasClass("wp-locked")||(f=e[d],h.find(".locked-text").text(f.text),h.find(".check-column input[type=checkbox]").prop("checked",!1),f.avatar_src&&(g=b('<img class="avatar avatar-18 photo" width="18" height="18" />').attr("src",f.avatar_src.replace(/&/g,"&")),h.find(".locked-avatar").empty().append(g)),h.addClass("wp-locked")):h.hasClass("wp-locked")&&h.removeClass("wp-locked").delay(1e3).find(".locked-info span").empty()})}).on("heartbeat-send."+a,function(c,d){var e=[];b(".gf-locking").each(function(a,c){e.push(b(c).data("id"))}),e.length&&(d[a]=e)})}var d;b(document).ready(function(){d=gflockingVars.objectType,a.init()}),a.init=function(){c()}}(window.gflocking=window.gflocking||{},jQuery);