Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Context menu functionality for folders
- $(".folder").bind('contextmenu', function(e)
- {
- $('<div class="overlay"></div>').css({left : '0px', top : '0px',position:
- 'absolute', width:'100%',
- height: '100%', zIndex: '100' }).click(function()
- {
- $(this).remove();
- $(".context_menu").hide();
- }).bind('contextmenu' , function(){return false;}).appendTo(document.body);
- $(".context_menu").show().css({left: e.pageX, top: e.pageY, zIndex: '101'});
- return false;
- });
Add Comment
Please, Sign In to add comment