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

Revision 6515, 535 bytes checked in by vdigital, 10 years ago (diff)

2.1.b fixes first release bugs:

  • Default user level is fixed
  • Default selectors review ( photoWidget could not be supported )
  • Lightbox, HD Shadowbox and akBookStyle are supported
  • Merge of selectors ( default and customized ) is fixed
  • jQuery generated has been reviewed and simplified
Line 
1{known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"}
2{html_head}
3<!-- Protected images by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl -->
4<script type="text/javascript">
5jQuery(document).ready(function($) {ldelim}
6{foreach item=selector from=$RIGHTCK.Selectors name=select}
7        $('{$selector}').each( function() {ldelim}
8                $(this)[0].oncontextmenu = function() {ldelim}
9                        return false;
10                }
11        });     
12{/foreach}
13});
14</script> 
15{/html_head}
Note: See TracBrowser for help on using the repository browser.