Changeset 6515 for extensions/rightClick/template/rightClick_protect.tpl
- Timestamp:
- Jun 10, 2010, 9:43:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rightClick/template/rightClick_protect.tpl
r6502 r6515 1 1 {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} 2 2 {html_head} 3 <!-- Pro vided informationby the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl -->3 <!-- Protected images by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl --> 4 4 <script type="text/javascript"> 5 jQuery.noConflict(); 6 jQuery(document).ready(function($) {*Smarty*}{ldelim} 7 {*Smarty*}{foreach item=selector from=$RIGHTCK.Selectors name=select} 8 $({*Smarty*}'{$selector}').addClass('rightClick'); 9 {*Smarty*}{/foreach} 10 $(".rightClick").each( function() {*Smarty*}{ldelim} 11 $(this)[0].oncontextmenu = function() {*Smarty*}{ldelim} 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} 12 9 return false; 13 10 } 14 }); 11 }); 12 {/foreach} 15 13 }); 16 14 </script>
Note: See TracChangeset
for help on using the changeset viewer.