Skip to content

Instantly share code, notes, and snippets.

@rmanalan
Forked from jlsync/file.js
Created May 15, 2010 14:33
Show Gist options
  • Save rmanalan/402220 to your computer and use it in GitHub Desktop.
Save rmanalan/402220 to your computer and use it in GitHub Desktop.
$.sammy(function() {
app.get('#/exams/new', function(context) {
// display the modal
window.setTimeout( function(){
context.app.location_proxy.unbind();
context.app.setLocation('#/');
context.app.last_location = '#/';
context.app.location_proxy.bind();
}, 55 ); // sammy hack
return false;
});
app.get('#/exams/:id', function(context) {
// display the modal
window.setTimeout( function(){
context.app.location_proxy.unbind();
context.app.setLocation('#/');
context.app.last_location = '#/';
context.app.location_proxy.bind();
}, 55 ); // sammy hack
return false;
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment