Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
945 B

5 years ago
  1. <a class="btn btn-success copy">{{'Full Visualization'|trans({})}}</a>
  2. <div class="visualizacion wrappertest" style="display:none"><a class="btn btn-error cerrar">×</a>
  3. </div>
  4. <script>
  5. $('a.copy').on('click', function(){
  6. console.log('compiando');
  7. $('textarea').each(function(){
  8. // get the value
  9. $(this).html($(this).val());
  10. // check the value with the regular expression here.
  11. // send alert if failed etc...
  12. });
  13. var cp = $('form.wizard').html();
  14. var vis=$('div.visualizacion').html();
  15. $('div.visualizacion').append( cp );
  16. $('.visualizacion.wrappertest textarea').prop('disabled', true);
  17. $('div.visualizacion').show();
  18. $('a.cerrar').on('click', function(){
  19. console.log('limpiando');
  20. $('div.visualizacion').html('');
  21. $('div.visualizacion').append('<a class="btn btn-error cerrar">×</a>');
  22. $('div.visualizacion').hide();
  23. });
  24. });
  25. </script>