Ignore:
Timestamp:
06/10/10 21:43:05 (10 years ago)
Author:
vdigital
Message:

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rightClick/template/rightClick_protect.tpl

    r6502 r6515  
    11{known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} 
    22{html_head} 
    3 <!-- Provided information by 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 --> 
    44<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} 
     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} 
    129                        return false; 
    1310                } 
    14         }); 
     11        });      
     12{/foreach} 
    1513}); 
    1614</script>   
Note: See TracChangeset for help on using the changeset viewer.