Created
May 31, 2012 19:38
-
-
Save scooler/2845727 to your computer and use it in GitHub Desktop.
Changing selectors
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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript"></script> | |
<script src="https://raw.github.com/rails/jquery-ujs/master/src/rails.js" type="text/javascript" ></script> | |
<script type="text/javascript"> | |
$( function(){ | |
$.rails.linkClickSelector = $.rails.linkClickSelector+", b" | |
}); | |
</script> | |
</head> | |
<body> | |
<b data-method="delete" data-remote="true" href="http://localhost:3000/test">Click me</b> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment