{% endif %}
</div>
<div class="form-group">
- Project:
- <select id="project" name="project">
+ Project: <div id="project_loading" style="display:inline;"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading projects" /></div>
+ <select id="project" name="project" style="display:none;">
</select>
</div>
<div class="form-group">
source: availableTags,
minLength: 0,
select: function( event, ui ) {
+ $("#project").hide();
+ $("#project_loading").css('display', 'inline-block');
draw_projects(jQuery('.ui-state-focus').html());
},
});
});
function draw_projects(authority_hrn){
+
var projects = [];
project_row = "<option value=''> - </option>";
projects.push(project_row);
});
$("#project").html(projects.join( "" ));
}
+ $("#project").show();
+ $("#project_loading").hide();
}
</script>
{% endblock %}