Created
January 26, 2012 17:03
-
-
Save mnelson/1683805 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(".call-to-action").live("click",function(e){ | |
try{ | |
register_user_modal($(this).attr("href")); | |
} catch(err){alert(err);} | |
e.preventDefault(); | |
return false; | |
}); | |
function register_user_modal(target_link){ | |
alert("wtf1"); | |
var options = { | |
open:function(){ | |
$.get(target_link,{}, | |
function(r){ | |
alert("wtf2"); | |
$("#register_user-modal").html(r); | |
$('.modal-header').append("<a href='' class='close-reveal-modal close'>×<a/>") | |
return false; | |
} | |
) | |
} | |
}; | |
create_modal("register_user",options); | |
alert('wtf3'); | |
$('#register_user-modal').reveal(); | |
alert('wtf4'); | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment