!function(e){var t=e("#sites").children("tbody").children(),n=t.children("th:nth-child(2)").children(".lightswitch"),a=t.find(".single-homepage .checkbox");function i(){t.each((function(t){!function(t,a){var i=n.eq(a);if(i.length){var r=i.parent().nextAll("td"),d=r.find("textarea, input, .lightswitch");if(!i.data("lightswitch").on)return r.addClass("disabled"),d.attr({tabindex:"-1",readonly:"readonly"}),void d.on("focus.preventFocus",(function(t){e(t.currentTarget).blur(),t.preventDefault(),t.stopPropagation()}));r.removeClass("disabled"),d.removeAttr("tabindex"),d.removeAttr("readonly"),d.off("focus.preventFocus")}var o=t.children(".single-homepage").find(".checkbox"),c=t.children(".single-uri");o.prop("checked")?c.addClass("disabled").find("textarea").attr("tabindex","-1"):c.removeClass("disabled").find("textarea").attr("tabindex","0")}(e(this),t)}))}n.on("change",i),a.on("change",i),Garnish.$doc.ready((function(){i()}))}(jQuery);
//# sourceMappingURL=editsection.js.map