Changeset 9982 for extensions/rightClick/template/rightClick_protect.tpl
- Timestamp:
- Apr 2, 2011, 12:55:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rightClick/template/rightClick_protect.tpl
r6515 r9982 1 {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} 2 {html_head} 1 {footer_script require="jquery"} 3 2 <!-- Protected images by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl --> 4 <script type="text/javascript"> 5 jQuery(document).ready(function($) {ldelim} 6 {foreach item=selector from=$RIGHTCK.Selectors name=select} 7 $('{$selector}').each( function() {ldelim} 8 $(this)[0].oncontextmenu = function() {ldelim} 3 jQuery(document).ready(function() {ldelim} 4 jQuery('{','|@implode:$RIGHTCK.Selectors}').each( function() {ldelim} 5 jQuery(this)[0].oncontextmenu = function() {ldelim} 9 6 return false; 10 7 } 11 8 }); 12 {/foreach}13 9 }); 14 </script> 15 {/html_head} 10 {/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.