Created
June 12, 2010 20:06
-
-
Save aviflombaum/436030 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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