email.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. function email(elid){
  2. $('.mailDetail').hide();
  3. $('.mailAddressee').hide();
  4. //$('.send').hide();
  5. $("#html_"+elid).show();
  6. $("#client_"+elid).show();
  7. //$("#send_"+elid).show();
  8. }
  9. function tabC(a,b){
  10. $('#tab'+a).show();
  11. $('#tab'+b).hide();
  12. }
  13. $(function() {
  14. $("#natureNULL").click(function(){
  15. if($("#natureNULL").attr("checked")=='checked'){
  16. $("#natureNULL").val('NULL');
  17. $("input[name='nature[]']").attr("disabled",true);
  18. }else{
  19. $("#natureNULL").val('');
  20. $("input[name='nature[]']").attr("disabled",false);
  21. }
  22. });
  23. $("p[id^='send_']").click(function(){
  24. $(this).html('已发送');
  25. });
  26. $("input[id^='title']").keyup(function(){
  27. $("span[name='titleHtml']").html($(this).val());
  28. });
  29. $("input[id^='inlineradio1']").click(function(){
  30. $("#emailTemplate1").show();
  31. $("#emailTemplate2").hide();
  32. $("#emailTemplate3").hide();
  33. });
  34. $("input[id^='inlineradio2']").click(function(){
  35. $("#emailTemplate1").hide();
  36. $("#emailTemplate2").show();
  37. $("#emailTemplate3").hide();
  38. });
  39. $("input[id^='inlineradio3']").click(function(){
  40. $("#emailTemplate1").hide();
  41. $("#emailTemplate2").hide();
  42. $("#emailTemplate3").show();
  43. });
  44. $("textarea[id^='content']").keyup(function(){
  45. $("p[name='contentHtml']").html($(this).val());
  46. });
  47. $("textarea[id^='content']").charCount({
  48. allowed: 59,
  49. warning: 10,
  50. counterText: '剩余为'
  51. });
  52. })