maidstone-hackspace/website/static_resources/js/default.js

24 lines
602 B
JavaScript

$(document).ready(function(){
$('.ajaxPopup, .ajax-form').on('click', function(e){
e.preventDefault();
$.ajax({
url: $(this).attr('href'),
context: document.body
}).done(function(html) {
$( this ).addClass( 'done' );
$('#ajaxPopup > div.content').html(html);
$('#ajaxPopup').show();
});
});
$('.closePopup').on('click', function(e){
e.preventDefault();
$('#ajaxPopup').hide();
});
$(document).ready(function() {
$('select').material_select();
});
});