Can someone help? What is wrong with this code.
//<script>
elgg.provide('elgg.disable_right_click');
elgg.disable_right_click.init = function() {
$('body').bind('contextmenu', function(e) {
return false;
});
};
elgg.register_hook_handler('init', 'system', elgg.disable_right_click.init);
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.