This commit is contained in:
2022-07-16 20:52:54 -04:00
parent 1a6bade648
commit 4b99c679aa
4 changed files with 215 additions and 169 deletions
@@ -88,4 +88,74 @@
return false;
}
// -->
</script>
</script>
<script type="text/javascript">
<!--
function showModal(interest_id) {
if (typeof event !== 'undefined') {
event.preventDefault();
}
// collect data - either from forms or from data variables
var id = $(this).data('id');
// load the modal content with a loader gif and message
$('#modal-content').html('Loading...');
// show modal window
$('#modal_theme_primary').modal('show');
// do the ajax bit
var post_data = {
'interest_id': id,
};
$.ajax({
url: "/jobs/jobinterest_modal?interest_id="+interest_id
}).done(function (data) {
//alert(data);
$('#modal-content').html(data);
});
}
function showJobModal(contact_id) {
if (typeof event !== 'undefined') {
event.preventDefault();
}
// collect data - either from forms or from data variables
var id = $(this).data('id');
// load the modal content with a loader gif and message
$('#modal-content').html('Loading...');
// show modal window
$('#modal_theme_primary').modal('show');
// do the ajax bit
var post_data = {
'interest_id': id,
};
$.ajax({
url: "/jobs/jobdetail_modal?contact_id="+contact_id
}).done(function (data) {
//alert(data);
$('#modal-content').html(data);
});
}
// -->
</script>
<!-- Basic modal -->
<div id="modal_theme_primary" class="modal fade">
<div class="modal-dialog">
<div class="modal-content" id="modal-content">
</div>
</div>
</div>
<!-- /basic modal -->