Skip to content

Instantly share code, notes, and snippets.

@jwreagor
Created April 21, 2010 16:45
Show Gist options
  • Save jwreagor/374082 to your computer and use it in GitHub Desktop.
Save jwreagor/374082 to your computer and use it in GitHub Desktop.
function modified_tb_init(domChunk, opennow) {
var $button = $(domChunk);
var t = null;
// var a = $button.attr('data-href');
var g = false;
$button.click(function() {
tb_show(t, $(this).attr('data-href'), g);
this.blur();
return false;
});
if (opennow) tb_show(t, $(this).attr('data-href'), g);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment