Ignore:
Timestamp:
05/18/10 09:41:04 (14 years ago)
Author:
rodsouza
Message:

Ticket #1058 - Permitindo o envio de formulário por requisição background

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/templates/default/edit.tpl

    r1154 r2802  
    1515                Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes"); 
    1616        } 
     17        function send_form( ) 
     18        { 
     19                var participants; 
     20 
     21                if ( ( participants = document.getElementById( 'user_list_in' ) ) ) 
     22                        for ( var i = 0; i < participants.length; i++ ) 
     23                                participants.options[ i ].selected = false; 
     24 
     25                if ( ( participants = document.getElementById( 'user_list' ) ) ) 
     26                        for ( var i = 0; i < participants.length; i++ ) 
     27                                participants.options[ i ].selected = true; 
     28 
     29                return ExpressoLivre.form( arguments[ 0 ].parentNode.removeChild( arguments[ 0 ] ) ); 
     30        } 
    1731</script> 
    1832<center> 
    1933<font color="#000000" face="{font}"> 
    2034 
    21 <form action="{action_url}" method="post" name="app_form"> 
     35<form action="{action_url}" method="post" name="app_form" onsubmit="return send_form( this );"> 
    2236{common_hidden} 
    2337<table id="editFormTable" border="0" width="90%"   class="prefTable"> 
Note: See TracChangeset for help on using the changeset viewer.