Created
April 21, 2010 16:45
-
-
Save jwreagor/374082 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
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