Made a nice new UI for autocompleting

This commit is contained in:
David Taylor
2015-04-22 13:27:56 +01:00
parent 0618684de8
commit 66236df979
9 changed files with 2940 additions and 84 deletions

View File

@@ -162,12 +162,6 @@
jQuery('#modal').load(jQuery(this).attr('href'), function (e) {
jQuery('#modal').modal();
});
jQuery('#modal').on('hide.bs.modal', function (e) {
if (modaltarget != "" && modalobject != "") {
jQuery(modaltarget).val(modalobject[0]['pk']);
jQuery(modaltarget + '-input').val(modalobject[0]['fields']['name']);
}
})
});
});
</script>