Difference: JavaScript (16 vs. 17)

Revision 1702 Sep 2010 - FlavioAraujo

Line: 1 to 1
 
%STARTINCLUDE%
<script type="text/javascript" src="%ATTACHURL%/jquery.js"></script>
<script type="text/javascript">
Line: 63 to 63
  $("div.escondido h4").attr("title","Clique para mostrar");

//Seletor de e-mails para o Fale Conosco

Changed:
<
<
$(":radio").click(function(){
>
>
$("#faleconosco :radio").click(function(){
  $("#faleconosco input#to").attr("value", $(this).attr("value")); });
Added:
>
>
//Coloca o nome do remetente no corpo da mensagem $("#faleconosco :submit").click(function(){ $("#faleconosco textarea").attr("value","Remetente: " + $("#faleconosco #remetente").attr("value") + "\n" + $("#faleconosco textarea").attr("value")); // $("#faleconosco textarea").prepend("Remetente: " + $("#faleconosco #remetente").attr("value") + "\n"); });
  total = document.getElementById("fotos"); if (total) { total = total.getElementsByTagName("img").length;
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback