mirror of
https://github.com/bodyrep/bodyrep-sandpit.git
synced 2026-01-25 14:21:40 +00:00
Authentication was moved from the member controller the new AuthController. User entity created strictly for session management Symfony config Service and parameter configuration has been switched to YAML and consolidated into app/config/config.yml Removed Twig extension from the service container (services.xml) Presentation LABJS test added Some sample js added to test inline js vs callbacks vs Twig/Angular/etc Tests New units tests for Landing, Profile, Auth and Member controllers
33 lines
928 B
JavaScript
33 lines
928 B
JavaScript
|
|
$(function() {
|
|
$('#edprf').unbind().live('click', function() {
|
|
$.get('/app_dev.php/m/profile/edit', {}, function(data) {
|
|
$('#mcnt').html(data);
|
|
});
|
|
});
|
|
$('form#topsearch').live('submit', function(){
|
|
frm = $(this);
|
|
var searchTerm = frm.find('input').val();
|
|
url = frm.attr('action') + '/'+searchTerm;
|
|
$.get(url, {}, function(data) {
|
|
$('.symfony-content > .row-fluid').html(data);
|
|
});
|
|
return false;
|
|
});
|
|
$('form#profile').live('submit', function(){
|
|
frm = $(this);
|
|
$.post(frm.attr('action'), frm.serialize(), function(response) {
|
|
|
|
if(response.result)
|
|
$('#mcnt').append('<b>Updated</b>');
|
|
});
|
|
return false;
|
|
});
|
|
|
|
$('.block_type').hover(function(){
|
|
$(this).animate({height:'50px'},{queue:false,duration:200});
|
|
}, function(){
|
|
$(this).animate({height:'0px'},{queue:false,duration:200});
|
|
});
|
|
});
|
|
|