text: $(function(){var b=function(){var c=$(this);if($(this).data("initialised")){return}c.data("initialised",true);var d=function(e){console.log(e);return};$.getJSON(c.data("url"),function(g){var e;var f=c.data("url");itemCount=g.search_data["total_hits"];if(itemCount==1){e="1 related item."}else{if(itemCount>0){e=itemCount+" related items."}else{c.closest("tr").find(".btn-info").attr("disabled",false);e="Not used."}}c.html("<a href='"+f+"'>"+e+"</a>")})};$(".enum-value-search").each(b);var a=function(c){document.location.search="?id="+$(this).val()};$("#enum_selector").change(a)});