Changeset 2802 for trunk/preferences


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

Location:
trunk/preferences
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/preferences/inc/class.uicategories.inc.php

    r2495 r2802  
    453453                                else 
    454454                                { 
    455                                         $cat_id = $this->bo->save_cat($values); 
    456                                         return $this->index(); 
    457                                         //$GLOBALS['phpgw']->template->set_var('message',lang('Category %1 has been updated !',$cat_name)); 
     455                                        $this->bo->save_cat($values); 
     456                                        $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script' ] .= "<script>ExpressoLivre.link( '{$GLOBALS[ 'phpgw' ] -> link( '/index.php', $link_data )}' );</script>"; 
     457                                        exit; 
    458458                                } 
    459459                        } 
  • trunk/preferences/templates/default/category_form.tpl

    r2 r2802  
    44<center> 
    55{message}<br> 
    6 <table border="0" width="80%" cellspacing="2" cellpadding="2">  
    7 <form name="form" action="{actionurl}" method="POST"> 
     6<form name="form" action="{actionurl}" method="POST" onsubmit="return ExpressoLivre.form( this );"> 
     7<table border="0" width="80%" cellspacing="2" cellpadding="2"> 
    88        <tr bgcolor="{th_bg}"> 
    99                <td colspan="2">{lang_parent}</td> 
     
    3232 
    3333        <tr valign="bottom" height="50"> 
    34                 <td><input type="submit" name="save" value="{lang_save}"></form></td> 
    35                 <td><form method="POST" action="{cancel_url}"> 
    36                         <input type="submit" name="cancel" value="{lang_cancel}"></form></td> 
     34                <td><input type="submit" name="save" value="{lang_save}"></td> 
     35                <td><input type="button" name="cancel" value="{lang_cancel}" onclick="ExpressoLivre.link( '{cancel_url}' );"/></td> 
    3736        </tr> 
    3837</table> 
     38</form> 
    3939</center> 
    4040 
     
    4646                <td> 
    4747                        {hidden_vars} 
    48                         <input type="submit" name="save" value="{lang_save}"></form></td> 
    49                 <td> 
    50                         <form method="POST" action="{cancel_url}"> 
    51                         <input type="submit" name="cancel" value="{lang_cancel}"></form></td> 
     48                        <input type="submit" name="save" value="{lang_save}"></td> 
     49                <td><input type="button" name="cancel" value="{lang_cancel}" onclick="ExpressoLivre.link( '{cancel_url}' );"/></td> 
    5250                <td align="right">{delete}</td> 
    5351        </tr> 
    5452</table> 
     53</form> 
    5554</center> 
    5655 
  • trunk/preferences/templates/default/listcats.tpl

    r2 r2802  
    5252        <tr valign="bottom" height="50"> 
    5353                <td> 
    54                         <form method="POST" action="{add_action}"> 
    55                                 <input type="submit" value="{lang_add}"> 
    56                         </form> 
     54                        <input type="button" value="{lang_add}" onclick="ExpressoLivre.link( '{add_action}' );" /> 
    5755                </td> 
    5856                <td> 
    59                         <form method="POST" action="{doneurl}"> 
    60                                 <input type="submit" name="done" value="{lang_cancel}"> 
    61                         </form> 
     57                        <input type="button" name="done" value="{lang_cancel}" onclick="ExpressoLivre.link( '{doneurl}' );" /> 
    6258                </td> 
    6359                <td width="80%">&nbsp;</td> 
Note: See TracChangeset for help on using the changeset viewer.