Changeset 2495


Ignore:
Timestamp:
04/13/10 11:43:13 (14 years ago)
Author:
rodsouza
Message:

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

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/hook_settings.inc.php

    r2027 r2495  
    236236//document.getElementById('user_signature').value  = '".$vars['signature']."'; 
    237237function changeType(value){ 
     238        if( typeof FCKeditorAPI == 'undefined' ) 
     239                return false; 
    238240        var html_signature = FCKeditorAPI.GetInstance(\"html_signature\"); 
    239241        value=value.replace('d',''); 
     
    402404   var elementoSelects  = document.getElementsByTagName('select'); 
    403405 
    404    if ( elementoSelects[18].name == \"user[type_signature]\" ) { 
     406   if ( elementoSelects.length && elementoSelects[18].name == \"user[type_signature]\" ) { 
    405407        return elementoSelects[18]; 
    406408   } 
     
    416418function config_form(pObj,pHandler) 
    417419{ 
     420        if ( typeof pObj != 'undefined' ) 
    418421        pObj.onclick=function () { 
    419                 if (getTypeSignature().value == \"html\" || getTypeSignature().value == \"htmld\") { 
     422                var signature = getTypeSignature( ); 
     423                if ( signature && signature.value == \"html\" || signature.value == \"htmld\") { 
    420424                        return pHandler(\"text\"); 
    421425                } 
  • trunk/mobile/inc/class.ui_preferences.inc.php

    r691 r2495  
    2424                { 
    2525                        $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Preferences').' - '.lang('Mobile'); 
    26                         $GLOBALS['phpgw']->common->phpgw_header(); 
    27                         echo parse_navbar(); 
     26                        //$GLOBALS['phpgw']->common->phpgw_header(); 
     27                        //echo parse_navbar(); 
    2828 
    2929                        $GLOBALS['phpgw']->template->set_file(array('pref' => 'preferences.tpl')); 
     
    8484                        } 
    8585 
    86                         header('Location: '.$GLOBALS['phpgw']->link('/preferences/index.php')); 
     86                        $GLOBALS['phpgw']->redirect_link( '/preferences/index.php' ); 
    8787                } 
    8888 
  • trunk/phpgwapi/js/tools/xlink.js

    r2483 r2495  
    1414                a = ( a || ( action.indexOf( window.location + '#' ) === 0 ) ); 
    1515                */ 
    16                 var a = ( action.indexOf( 'admin/' ) > 0 || action.indexOf( 'admin.' ) > 0 ); 
     16                var a = ( action.indexOf( 'admin' ) > 0 ); 
    1717                a = ( a || action.indexOf( 'home' ) > 0 ); 
    1818                a = ( a || action.indexOf( 'contactcenter' ) > 0 ); 
    1919                a = ( a || action.indexOf( 'expressoAdmin1_2' ) > 0 ); 
    2020                a = ( a || action.indexOf( 'filemanager' ) > 0 ); 
    21                 a = ( a || action.indexOf( 'abberit_messenger' ) > 0 ); 
    22                 a = ( a || action.indexOf( 'calendar/' ) > 0 || action.indexOf( '=calendar.' ) > 0 ); 
     21                a = ( a || action.indexOf( 'jabberit_messenger' ) > 0 ); 
     22                a = ( a || action.indexOf( 'preferences' ) > 0 ); 
     23                a = ( a || action.indexOf( 'calendar' ) > 0 ); 
    2324                a = ! ( a && ! ( action.indexOf( '#' ) === 0 || action.indexOf( window.location + '#' ) === 0 || action.indexOf( 'javascript:' ) === 0 ) ); 
    2425 
  • trunk/phpgwapi/templates/classic/navbar.tpl

    r1151 r2495  
    7373  <td width="30%" id="admin_info" nowrap>{current_users}</td> 
    7474  <td style="padding-right:10px" width="*" align="right" valign="center" nowrap="true"> 
    75                 <a href="{dir_root}/preferences" title="{title_my_preferences}" alt="{title_my_preferences}" onmouseover="javascript:self.status='{title_my_preferences}'" onmouseout="javascript:self.status=''"><img height="15px" src="{dir_root}/phpgwapi/templates/celepar/images/preferences.png"><font size="-1">{my_preferences}</font></a> 
     75                <a href="{dir_root}/preferences/" title="{title_my_preferences}" alt="{title_my_preferences}" onmouseover="javascript:self.status='{title_my_preferences}'" onmouseout="javascript:self.status=''"><img height="15px" src="{dir_root}/phpgwapi/templates/celepar/images/preferences.png"><font size="-1">{my_preferences}</font></a> 
    7676                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
    7777                <a href="#" title="{title_suggestions}" alt="{title_suggestions}" onmouseover="javascript:self.status='{title_suggestions}'" onmouseout="javascript:self.status=''" onclick="javascript:openWindow(400,550,'{dir_root}/help/enviasugestao.php')"><img src="{dir_root}/phpgwapi/templates/celepar/images/criticas.jpg"><font size="-1">{suggestions}</font></a> 
  • trunk/phpgwapi/templates/default/navbar.tpl

    r1860 r2495  
    9999  <td width="30%" id="admin_info" nowrap>{current_users}</td> 
    100100  <td style="padding-right:10px" width="*" align="right" valign="center" nowrap="true"> 
    101                 <a href="{dir_root}/preferences" title="{title_my_preferences}" alt="{title_my_preferences}" onmouseover="javascript:self.status='{title_my_preferences}'" onmouseout="javascript:self.status=''"><img height="15px" src="{dir_root}/phpgwapi/templates/{template}/images/preferences.png"><font id="links_bar">{my_preferences}</font></a> 
     101                <a href="{dir_root}/preferences/" title="{title_my_preferences}" alt="{title_my_preferences}" onmouseover="javascript:self.status='{title_my_preferences}'" onmouseout="javascript:self.status=''"><img height="15px" src="{dir_root}/phpgwapi/templates/{template}/images/preferences.png"><font id="links_bar">{my_preferences}</font></a> 
    102102                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
    103103                <a href="#" title="{title_suggestions}" alt="{title_suggestions}" onmouseover="javascript:self.status='{title_suggestions}'" onmouseout="javascript:self.status=''" onclick="javascript:openWindow(400,550,'{dir_root}/help/enviasugestao.php')"><img src="{dir_root}/phpgwapi/templates/{template}/images/critic.png"><font id="links_bar">{suggestions}</font></a> 
  • trunk/preferences/changepassword.php

    r1681 r2495  
    1313 
    1414        $GLOBALS['phpgw_info']['flags'] = array( 
    15                 'noheader'   => True, 
    16                 'nonavbar'   => True, 
     15                //'noheader'   => True, 
     16                //'nonavbar'   => True, 
    1717                'currentapp' => 'preferences' 
    1818        ); 
     
    9494 
    9595                if ($GLOBALS['phpgw_info']['server']['use_https'] == 1) 
    96                         Header('Location: http://' . $_SERVER['HTTP_HOST'] . $GLOBALS['phpgw_info']['server']['webserver_url'] . '/preferences/index.php'); 
     96                        $GLOBALS[ 'phpgw' ] -> redirect_link( '/preferences/index.php' ); 
    9797                else 
    98                         $GLOBALS['phpgw']->redirect_link('/preferences/index.php'); 
     98                        $GLOBALS[ 'phpgw' ] -> redirect_link( '/preferences/index.php' ); 
    9999 
    100100                $GLOBALS['phpgw']->common->phpgw_exit(); 
  • trunk/preferences/changepersonaldata.php

    r1225 r2495  
    1515 
    1616        $GLOBALS['phpgw_info']['flags'] = array( 
    17                 'noheader'   => True, 
    18                 'nonavbar'   => True, 
     17                //'noheader'   => True, 
     18                //'nonavbar'   => True, 
    1919                'currentapp' => 'preferences' 
    2020        ); 
     
    104104                        if(is_array($errors)) 
    105105                        { 
    106                                 $GLOBALS['phpgw']->common->phpgw_header(); 
    107                                 echo parse_navbar(); 
     106                                //$GLOBALS['phpgw']->common->phpgw_header(); 
     107                                //echo parse_navbar(); 
    108108                                $GLOBALS['phpgw']->template->set_var('messages',$GLOBALS['phpgw']->common->error_list($errors)); 
    109109                                $GLOBALS['phpgw']->template->pfp('out','form'); 
     
    116116        { 
    117117                $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Change your Personal Data'); 
    118                 $GLOBALS['phpgw']->common->phpgw_header(); 
    119                 echo parse_navbar(); 
     118                //$GLOBALS['phpgw']->common->phpgw_header(); 
     119                //echo parse_navbar(); 
    120120 
    121121                $GLOBALS['phpgw']->template->pfp('out','form'); 
  • trunk/preferences/inc/class.uiaclprefs.inc.php

    r1496 r2495  
    177177                        }                        
    178178                         
    179                         $GLOBALS['phpgw']->common->phpgw_header(); 
    180                         echo parse_navbar(); 
     179                        //$GLOBALS['phpgw']->common->phpgw_header(); 
     180                        //echo parse_navbar(); 
    181181                         
    182182                        $this->template = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('preferences')); 
  • trunk/preferences/inc/class.uicategories.inc.php

    r1623 r2495  
    112112                        $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps'][$cats_app]['title']. 
    113113                                '&nbsp;'.lang('categories for').':&nbsp;'.$this->user; 
    114                         $GLOBALS['phpgw']->common->phpgw_header(); 
    115                         echo parse_navbar(); 
     114                        //$GLOBALS['phpgw']->common->phpgw_header(); 
     115                        //echo parse_navbar(); 
    116116 
    117117                        $GLOBALS['phpgw']->template->set_file(array( 
     
    341341                        $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Add %1 category for', 
    342342                                $GLOBALS['phpgw_info']['apps'][$cats_app]['title']).':&nbsp;'.$this->user; 
    343                         $GLOBALS['phpgw']->common->phpgw_header(); 
    344                         echo parse_navbar(); 
     343                        //$GLOBALS['phpgw']->common->phpgw_header(); 
     344                        //echo parse_navbar(); 
    345345 
    346346                        $GLOBALS['phpgw']->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data)); 
     
    461461                        $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Edit %1 category for', 
    462462                                $GLOBALS['phpgw_info']['apps'][$cats_app]['title']).':&nbsp;'.$this->user; 
    463                         $GLOBALS['phpgw']->common->phpgw_header(); 
    464                         echo parse_navbar(); 
     463                        //$GLOBALS['phpgw']->common->phpgw_header(); 
     464                        //echo parse_navbar(); 
    465465 
    466466                        $cats = $this->bo->cats->return_single($cat_id); 
     
    561561 
    562562                                $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Delete Categories'); 
    563                                 $GLOBALS['phpgw']->common->phpgw_header(); 
    564                                 echo parse_navbar(); 
     563                                //$GLOBALS['phpgw']->common->phpgw_header(); 
     564                                //echo parse_navbar(); 
    565565 
    566566                                $GLOBALS['phpgw']->template->set_var('deleteheader',lang('Are you sure you want to delete this category ?')); 
  • trunk/preferences/preferences.php

    r2031 r2495  
    1212 
    1313        $GLOBALS['phpgw_info']['flags'] = array( 
    14                 'noheader'                => True, 
     14                //'noheader'                => True, 
    1515                'noappheader'             => True, 
    16                 'nonavbar'                => True, 
     16                //'nonavbar'                => True, 
    1717                'currentapp'              => @addslashes($_GET['appname']) ? addslashes($_GET['appname']) : 'preferences', 
    1818                'enable_nextmatchs_class' => True 
     
    508508        $GLOBALS['phpgw_info']['flags']['app_header'] = $_GET['appname'] == 'preferences' ? 
    509509                lang('Preferences') : lang('%1 - Preferences',$GLOBALS['phpgw_info']['apps'][$_GET['appname']]['title']); 
    510         $GLOBALS['phpgw']->common->phpgw_header(); 
    511         echo parse_navbar(); 
     510        //$GLOBALS['phpgw']->common->phpgw_header(); 
     511        //echo parse_navbar(); 
    512512 
    513513        $t->set_var('messages',$error); 
Note: See TracChangeset for help on using the changeset viewer.