Skip to content

Instantly share code, notes, and snippets.

@scooler
scooler / index.html
Created May 31, 2012 19:38
Changing selectors
<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>
@scooler
scooler / index.html
Created May 31, 2012 18:47
Stoping popup out to parent
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="rails.js" type="text/javascript" ></script>
<script type="text/javascript">
$( function(){
$(".parent").click(function(){
alert("Parent clicked");
});