Ignore:
Timestamp:
Apr 4, 2011, 2:51:28 PM (13 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.2 (remove "adviser", get_comment_post_key()
replaced by get_ephemeral_key(), known_script replaced by combine_script
and use of combine_css)

textarea is no more "resizable" (useless and break CSS rules)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/themes/cf_form.tpl

    r8479 r10035  
    1 {html_head}
    2   {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    3   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4   {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    5 {/html_head}
     1{combine_css path="plugins/ContactForm/include/contactform.css"}
     2{combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"}
    63
    7 {literal}
    8 <script type="text/javascript">
    9 jQuery().ready(function(){
    10     // Resize possible for textarea
    11     jQuery("#cf_message").resizable({
    12         handles: "all",
    13         animate: true,
    14         animateDuration: "slow",
    15         animateEasing: "swing",
    16         preventDefault: true,
    17         preserveCursor: true,
    18         autoHide: true,
    19         ghost: true
    20       });
    21   });
    22 jQuery().ready(function(){
    23   // Resize possible for textarea
    24   jQuery(".cf-input").resizable({
    25         handles: "e",
    26         animate: true,
    27         animateDuration: "slow",
    28         animateEasing: "swing",
    29         preventDefault: true,
    30         preserveCursor: true,
    31         autoHide: true,
    32         ghost: true
    33       });
    34   });
    35 
     4{footer_script}{literal}
    365function cf_validate() {
    376  var items = new Array('cf_from_name','cf_from_mail','cf_subject','cf_message');
     
    5827  return true;
    5928}
    60 </script>
    61 {/literal}
     29{/literal}{/footer_script}
     30
    6231<div id="autre_content" class="contact-form">
    6332  <form  method="post" action="{$CF.F_ACTION}" class="filter" id="contactform" onsubmit="return cf_validate();">
Note: See TracChangeset for help on using the changeset viewer.