Show
Ignore:
Timestamp:
05/04/11 17:14:41 (2 years ago)
Author:
Gotcha
Message:

First revision for compatiblity with Piwigo v2.2
Not work !

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • extensions/Flash_Gallery/modules/AutoViewer/admin/config.tpl

    r3531 r10757  
     1{combine_css path="./plugins/Flash_Gallery/farbtastic/farbtastic.css"}  
     2{combine_script id='jquery.farbtastic' require='jquery' path="./plugins/Flash_Gallery/farbtastic/farbtastic.js"} 
     3 
     4{footer_script require='jquery.farbtastic,jquery.ui.resizable'}{literal} 
     5 jQuery(document).ready(function() { 
     6     var f = jQuery.farbtastic('#colorpicker'); 
     7     var selected; 
     8     jQuery('.colorwell') 
     9       .each(function () { f.linkTo(this);  }) 
     10       .focus(function() { 
     11        f.linkTo(this); 
     12       }); 
     13  }); 
     14{/literal}{/footer_script} 
     15 
    116<br> 
    217<div id="colorpicker" style="float: right;"></div>       
     
    3853         
    3954</table> 
    40  
    41 {literal} 
    42  
    43 <script type="text/javascript" charset="utf-8"> 
    44  $(document).ready(function() { 
    45      var f = $.farbtastic('#colorpicker'); 
    46      var selected; 
    47      $('.colorwell') 
    48        .each(function () { f.linkTo(this);  }) 
    49        .focus(function() { 
    50         f.linkTo(this); 
    51  
    52        }); 
    53   }); 
    54 </script> 
    55 {/literal} 
    56