Changeset 2439


Ignore:
Timestamp:
04/07/10 08:17:49 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Permitindo que o ExpressoCalendar? não realize reload de página.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.uicalendar.inc.php

    r2419 r2439  
    30543054                                } 
    30553055                        } 
    3056                         if($GLOBALS['phpgw_info']['flags']['currentapp'] == 'home' || 
     3056                        if( !$GLOBALS['phpgw_info']['flags']['currentapp'] || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'home' ||  
    30573057                                strstr($GLOBALS['phpgw_info']['flags']['currentapp'],'mail'))   // email, felamimail, ... 
    30583058                        { 
     
    49164916                        if ($param['plain'] != "True"){ 
    49174917                        //      $GLOBALS['phpgw']->common->phpgw_header(); 
     4918                                echo $GLOBALS['phpgw']->common->get_java_script( ); 
    49184919                        } 
    49194920                        else{ 
  • trunk/calendar/inc/class.uiholiday.inc.php

    r2419 r2439  
    7676                                'rule'         => '', 
    7777                                'header_rule'  => '', 
    78                                 'back_button'   => '' 
     78                                'back_button'   => '', 
     79                                'info' => '' 
    7980                        ); 
    8081 
     
    171172                                'header_rule'           => '<td>'.$GLOBALS['phpgw']->nextmatchs->show_sort_order($this->bo->sort,'month_num,mday',$this->bo->order,'/index.php',lang('Rule'),'&menuaction=calendar.uiholiday.edit_locale&locale='.$this->bo->locales[0].'&year='.$this->bo->year).'</td>', 
    172173                                'header_extra'          => lang('Copy'), 
    173                                 'extra_width'           => 'width="5%"' 
     174                                'extra_width'           => 'width="5%"', 
     175                                'info'                          => '' 
    174176                        ); 
    175177 
     
    185187                                $maxmatchs = $GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs']; 
    186188                                $end = min($total,$this->bo->start+$maxmatchs); 
    187                                 $p->set_var('rows',lang('showing %1 - %2 of %3',1+$this->bo->start,$end,$total)); 
     189                                $p->set_var('info',lang('showing %1 - %2 of %3',1+$this->bo->start,$end,$total)); 
    188190                                for($i=$this->bo->start; $i < $end; $i++) 
    189191                                { 
     
    254256 
    255257                        $t = &$GLOBALS['phpgw']->template; 
    256                         $t->set_file(Array('holiday'=>'holiday.tpl','form_button'=>'form_button_script.tpl')); 
     258                        $t->set_file(Array('holiday'=>'holiday.tpl','form_button'=>'form_button_change_form_action.tpl')); 
    257259                        $t->set_block('holiday','form','form'); 
    258260                        $t->set_block('holiday','list','list'); 
     
    344346                                'action_url_button'     => $GLOBALS['phpgw']->link($this->base_url,$link_params), 
    345347                                'action_text_button'    => lang('Cancel'), 
    346                                 'action_confirm_button' => '', 
    347                                 'action_extra_field'    => '' 
    348348                        )); 
    349349                        $t->parse('cancel_button','form_button'); 
     
    359359                                $t->set_var(Array( 
    360360                                        'action_url_button'     => $GLOBALS['phpgw']->link($this->base_url,$link_params), 
    361                                         'action_text_button'    => lang('Delete'), 
    362                                         'action_confirm_button' => '', 
    363                                         'action_extra_field'    => '' 
     361                                        'action_text_button'    => lang('Delete') 
    364362                                )); 
    365363                                $t->parse('delete_button','form_button'); 
  • trunk/calendar/templates/default/form_button_dropdown.tpl

    r663 r2439  
     1<td width="{form_width}%" align="center" valign="top" style="padding-top:16px"> 
    12<form action="{form_link}" method="post" name="{form_name}form"> 
    2 <td width="{form_width}%" align="center" valign="top" style="padding-top:16px"> 
    33        <span style="font-size:10px"><b>{title}:</b> 
    44    {hidden_vars}     
     
    1010    </noscript> 
    1111        </span> 
     12</form> 
    1213</td> 
    13 </form> 
  • trunk/calendar/templates/default/holiday.tpl

    r2 r2439  
    22<center> 
    33{message}<br> 
     4 <form name="form" action="{actionurl}" method="POST"> 
    45<table border="0" width="80%" cellspacing="2" cellpadding="2">  
    5  <form name="form" action="{actionurl}" method="POST"> 
    66  {hidden_vars} 
    77{rows} 
     
    1111    <tr> 
    1212     <td> 
    13       <input type="submit" name="submit" value="{lang_add}"></form> 
     13          <div style="padding-top:15px; padding-right: 2px"> 
     14       <input type="submit" name="submit" value="{lang_add}"> 
     15          </div> 
    1416     </td> 
    1517     <td> 
     
    2426 </tr> 
    2527</table> 
     28</form> 
    2629</center> 
    2730<!-- END form --> 
  • trunk/calendar/templates/default/locales.tpl

    r2 r2439  
    88  </tr> 
    99 </table> 
     10 
     11 <p>{info}</p> 
    1012 
    1113 <table border="0" width="70%" align="center"> 
  • trunk/emailadmin/inc/class.ui.inc.php

    r2419 r2439  
    132132                                case 'emailadmin.ui.editProfile': 
    133133                                        $GLOBALS['phpgw']->js->validate_file('jscode','editProfile','emailadmin'); 
    134                                         $GLOBALS['phpgw']->js->set_onload('javascript:initAll();'); 
     134                                        //$GLOBALS['phpgw']->js->set_onload('javascript:initAll();'); 
    135135                                        echo $GLOBALS['phpgw']->js->get_script_links(); 
    136136                                        $GLOBALS['phpgw']->js->unset_script_link('emailadmin','jscode'); 
     
    223223                                                 
    224224                        $this->t->parse("out","main"); 
    225                         print $this->t->get('out','main'); 
     225                        echo "<style>{$this -> css( )}</style>{$this->t->get('out','main')}<script>initAll( );</script>"; 
    226226                } 
    227227                 
  • trunk/phpgwapi/inc/class.common.inc.php

    r2420 r2439  
    12321232                        echo "<script type='text/javascript'>var URL_SERVER = '".$GLOBALS['phpgw_info']['server']['webserver_url']."';</script>"; 
    12331233                        echo $GLOBALS['phpgw']->js->get_script_links(); 
     1234 
     1235                        $GLOBALS['phpgw']->js->unset_script_link( 'phpgwapi','tools' ); 
    12341236 
    12351237                        $GLOBALS['phpgw']->js->unset_script_link('phpgwapi','expressoAjax'); 
  • trunk/phpgwapi/inc/class.jscalendar.inc.php

    r771 r2439  
    8383                        return 
    8484'<input type="text" id="'.$name.'" name="'.$name.'" size="10" value="'.$date.'"'.$options.'/> 
     85<img id="'.$name.'-trigger" src="'.$GLOBALS['phpgw']->common->find_image('phpgwpai','datepopup').'" title="'.lang('Select date').'" style="cursor:pointer; cursor:hand;"/> 
    8586<script type="text/javascript"> 
    86         document.writeln(\'<img id="'.$name.'-trigger" src="'.$GLOBALS['phpgw']->common->find_image('phpgwpai','datepopup').'" title="'.lang('Select date').'" style="cursor:pointer; cursor:hand;"/>\'); 
    8787        Calendar.setup( 
    8888        { 
  • trunk/phpgwapi/inc/class.phpgw.inc.php

    r2419 r2439  
    151151                                if ( strpos( $url, '?' ) === false ) 
    152152                                        $url .= '?'; 
     153                                else 
     154                                        $url .= '&'; 
    153155                                $url .= 'BackgroundRequest=requested'; 
    154156                        } 
  • trunk/phpgwapi/js/tools/xlink.js

    r2420 r2439  
    1111                */ 
    1212                var a = ( action.indexOf( 'admin/' ) > 0 || action.indexOf( '=admin.' ) > 0 ); 
     13                a = ( a || action.indexOf( 'calendar/' ) > 0 || action.indexOf( '=calendar.' ) > 0 ); 
    1314                a = ! ( a && ! ( action.indexOf( '#' ) === 0 || action.indexOf( window.location + '#' ) === 0 || action.indexOf( 'javascript:' ) === 0 ) ); 
    1415 
  • trunk/phpgwapi/js/wz_dragdrop/wz_dragdrop.js

    r2 r2439  
    13151315                } 
    13161316        } 
    1317         if (dd.n4 || dd.n6 || dd.ie || dd.op || dd.w3c) document.write( 
    1318                 (dd.n4? '<div style="position:absolute;"><\/div>\n' 
    1319                 : (dd.op && !dd.op6)? '<div id="OpBlUr" style="position:absolute;visibility:hidden;width:0px;height:0px;"><form><input type="text" style="width:0px;height:0px;"><\/form><\/div>' 
    1320                 : '') + d_htm 
    1321         ); 
     1317        //if (dd.n4 || dd.n6 || dd.ie || dd.op || dd.w3c) document.write( 
     1318        //      (dd.n4? '<div style="position:absolute;"><\/div>\n' 
     1319        //      : (dd.op && !dd.op6)? '<div id="OpBlUr" style="position:absolute;visibility:hidden;width:0px;height:0px;"><form><input type="text" style="width:0px;height:0px;"><\/form><\/div>' 
     1320        //      : '') + d_htm 
     1321        //); 
    13221322        dd.z = 0x33; 
    13231323        d_i = dd.elements.length; while (d_i--) 
Note: See TracChangeset for help on using the changeset viewer.