Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Correctly disable the mediabox context menu (see #7501)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jan 21, 2015
1 parent 3a9da9b commit 46e670f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/mootools/mediabox/1.4.6/js/mediabox-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,8 @@ var Mediabox;
preload.width = mediaWidth;
}
if (Browser.ie) preload = document.id(preload);
preload.addEvent('mousedown', function(e){ e.stop(); }).addEvent('contextmenu', function(e){ e.stop(); });
// PATCH: enable the contextmenu (see #7501)
//preload.addEvent('mousedown', function(e){ e.stop(); }).addEvent('contextmenu', function(e){ e.stop(); });
image.setStyles({backgroundImage: "none", display: ""});
preload.inject(image);
}
Expand Down

0 comments on commit 46e670f

Please sign in to comment.