GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuing from #303, this moves the ajax requests out of the view classes and into a bunch of model classes.
The only change I had to make on the PHP side of AJAX so far is to return the raw data as JSON and render the template on the client side.
add mustache.js dependency
render candidate list client-side
Hold candidate query in the Candidates class
remove unused 'type' parameter from ajax_request
remove unused current-page-raw
use _.extend() instead of _.clone()
prevent click event entirely on inactive button
use jQuery.post() shortcut
remove unused ajax_request reference in CandidatesView
move ajax request from createPostView into Connections
move ajax requests from ConnectionsView into Connections
assign ajax_request after closure is created
Circular assignments are tricky.
remove spurious comments
remove unnecessary model parameter in Candidates.sync()
Merge pull request #306 from scribu/backbone-models
fix remaining reference to model parameter. see #306