On Mon, Jan 13, 2014 at 05:08:53AM -0800, Peter Golm wrote:
> >    $("#gethostbyname").on("click", function() {
> >       var hostname = $("#id_ip").val()
> >       var url = "{% url 'fwadmin:gethostbyname' 'xxxyyy' %}".replace("xxxyyy", hostname)
> >       $.getJSON(url, function( data ) {
> > -        if(data) {
> > -          $("#id_ip").val(data)
> > +        if(data.length === 1) {
> > +          $("#id_ip").val(data[0])
> > +        } else {
> > +          $('#ip_list').empty()
> > +          data.forEach(function(item) {
> > +            $('#ip_list').append($("<option></option").attr("value", item).text(item));
> 
> missing ```>```?

Indeed, good catch!