prevent default behavior of anchor when editing slot

This commit is contained in:
Brian Rosner 2012-09-20 20:59:01 -06:00
parent d354e2b017
commit f4344f4cbb

View file

@ -55,11 +55,12 @@
<script src="{{ STATIC_URL }}chosen/chosen.jquery.min.js" type="text/javascript"></script> <script src="{{ STATIC_URL }}chosen/chosen.jquery.min.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$("a.edit-slot").click(function() { $("a.edit-slot").click(function(e) {
$("#slotEditModal").load($(this).data("action"), function() { $("#slotEditModal").load($(this).data("action"), function() {
$("#id_presentation").chosen(); $("#id_presentation").chosen();
$("#slotEditModal").modal("show"); $("#slotEditModal").modal("show");
}); });
e.preventDefault();
}); });
}); });
</script> </script>