source: extensions/rightClick/template/rightClick_protect.tpl @ 9982

Last change on this file since 9982 was 9982, checked in by patdenice, 10 years ago

Compatible with piwigo 2.2.x

File size: 389 bytes
Line 
1{footer_script require="jquery"}
2<!-- Protected images by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl -->
3jQuery(document).ready(function() {ldelim}
4        jQuery('{','|@implode:$RIGHTCK.Selectors}').each( function() {ldelim}
5                jQuery(this)[0].oncontextmenu = function() {ldelim}
6                        return false;
7                }
8        });     
9});
10{/footer_script}
Note: See TracBrowser for help on using the repository browser.