Skip to content

Instantly share code, notes, and snippets.

@aviflombaum
Created June 12, 2010 20:06
Show Gist options
  • Save aviflombaum/436030 to your computer and use it in GitHub Desktop.
Save aviflombaum/436030 to your computer and use it in GitHub Desktop.
//Newly needed function
var war_switch_function = function(e){
window.location = '/wars/embed/neocon/?war_id='+e.target.value.split('/')[2];
// Talk about disproportionate...
// //unbind to prevent double firing
// $('#war_selector select').unbind('change');
// $(document).unbind('/cast_vote');
//
//
// $(document).trigger('/load_war', {
// url : e.target.value
// });
// $('#top_4').fadeOut(500);
// //the embed url
// $.postJSON('/wars/embed/neocon', {'war_id' : e.target.value.split('/')[2]},function(rsp){
// $('#top_4').html(rsp.html);
// });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment