Recollected static

This commit is contained in:
Tom Price
2015-01-22 19:11:23 +00:00
parent b6aa8ce1e2
commit 2d41815f9d
21 changed files with 6080 additions and 4709 deletions

View File

@@ -8,6 +8,7 @@ $(document).ready(function() {
$(this).autocomplete({
source: source,
minLength: 3,
delay: 500,
focus: function(e, ui) {
e.preventDefault();
$(this).val(ui.item.label);
@@ -17,7 +18,12 @@ $(document).ready(function() {
e.preventDefault();
$(this).val(ui.item.label);
$("#"+$(this).data('target')).val(ui.item.value)
},
}
});
$(this).on('blur', function () {
if ($(this).val() == "") {
$("#" + $(this).data('target')).val('');
}
})
});
});