var MotionList=function(){function t(){this.initList(),this.initExportRow()}return t.prototype.initList=function(){$(".markAll").click(function(t){$(".adminMotionTable").find("input.selectbox").prop("checked",!0),t.preventDefault()}),$(".markNone").click(function(t){$(".adminMotionTable").find("input.selectbox").prop("checked",!1),t.preventDefault()});var t=$("#initiatorSelect"),i=t.data("values"),n={hint:!0,highlight:!0,minLength:1},e=[{name:"supporter",source:function(t,n){var e,o;e=[],o=new RegExp(t,"i"),$.each(i,function(t,i){o.test(i)&&e.push({value:i})}),n(e)}}];t.typeahead(n,e),$(".adminMotionTable").colResizable({liveDrag:!0,postbackSafe:!0,minWidth:30})},t.prototype.initExportRow=function(){var t=$(".motionListExportRow");t.find("li.checkbox").on("click",function(t){t.stopPropagation()}),t.find(".exportMotionDd, .exportAmendmentDd").each(function(){var t=$(this);t.find("input[type=checkbox]").change(function(){var i=t.find("input[name=withdrawn]").prop("checked")?1:0;t.find(".exportLink a").each(function(){var t=$(this).data("href-tpl");t=t.replace("WITHDRAWN",i),$(this).attr("href",t)})}).trigger("change")})},t}();new MotionList;
//# sourceMappingURL=MotionList.js.map
