I went and downloaded this plugin to try some things.
Should work. If you only want to block right-clicking the opened Fancybox images you can use this instead:
But you will need to include your own jQuery in the theme. I18N Gallery includes jQuery 1.4.3, while my code was written for the latest version: 1.7.1.
The older versions of jQuery did not support .on(), but this effect can still be reached in 1.4.3 with the following code:
Code:
$(function(){
$(document).on('contextmenu', 'img', function(){ return false; });
});
Code:
$(function(){
$(document).on('contextmenu', '#fancybox-img', function(){ return false; });
});
The older versions of jQuery did not support .on(), but this effect can still be reached in 1.4.3 with the following code:
Code:
$(function(){
$(document).delegate('#fancybox-img', 'contextmenu', function(){ return false; });
});
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!