Guest User

Untitled

a guest
Jan 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     //Context menu functionality for folders
  2.     $(".folder").bind('contextmenu', function(e)
  3.     {  
  4.       $('<div class="overlay"></div>').css({left : '0px', top : '0px',position:
  5.                                            'absolute', width:'100%',
  6.                                            height: '100%', zIndex: '100' }).click(function()
  7.       {
  8.         $(this).remove();
  9.         $(".context_menu").hide();
  10.       }).bind('contextmenu' , function(){return false;}).appendTo(document.body);
  11.       $(".context_menu").show().css({left: e.pageX, top: e.pageY, zIndex: '101'});
  12.       return false;
  13.     });
Add Comment
Please, Sign In to add comment