Changeset 1712


Ignore:
Timestamp:
Oct 10, 2010, 3:16:12 AM (10 years ago)
Author:
popeye
Message:

Mieux dans le js général

Location:
cpc/trunk/project
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/commentaire/templates/_form.php

    r1711 r1712  
    6969</table>
    7070</form>
    71 <script type="text/javascript">
    72 <!--
    73 $('textarea').scroll(function() {
    74   textarea_height = $(this).height();
    75   $(this).height(textarea_height + 10);
    76 });
    77 -->
    78 </script>
  • cpc/trunk/project/web/js/fonctions.js

    r1661 r1712  
    8181      document.location = constructLien(url.replace(/.*#date=/, ''));
    8282  }
     83  // Redimensionnement automatique des textareas
     84  $('textarea').scroll(function() {
     85    textarea_height = $(this).height();
     86    $(this).height(textarea_height + 10);
     87  });
    8388
    8489}); // fin document ready
Note: See TracChangeset for help on using the changeset viewer.