Changeset 747

Show
Ignore:
Timestamp:
08/28/08 11:36:20 (3 months ago)
Author:
camper
Message:

Ajax: removed commented stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/Ajax.php

    r735 r747  
    1616 
    1717    public $spinner = null; 
    18      
     18 
    1919    protected $timeout=null; 
    2020 
     
    6565                $this->timeout=null; 
    6666        } 
    67          
     67 
    6868        return $this; 
    6969    } 
     
    7575         * 1) update DB 
    7676         * 2) reload a region to display updated data 
    77          *  
     77         * 
    7878         * as AJAX is asynchronious technology, (1) could finish after (2) is finished, and 
    7979         * you won't see any updates on the page 
     
    8888        return $this->ajaxFunc("document.location='".$url."'"); 
    8989    } 
    90          
     90 
    9191    function loadRegionURL($region_id,$url){ 
    9292        $this->ajaxFunc("aasn('$region_id','$url')"); 
     
    162162                $this->memorizeExpander(); 
    163163        return $this->loadRegionURL($_GET['expanded'].'_expandedcontent_'.$_GET['id'], 
    164                         $this->api->getDestinationURL($url, array_merge(array('cut_object'=>$url),  
     164                        $this->api->getDestinationURL($url, array_merge(array('cut_object'=>$url), 
    165165                                $args))); 
    166166    } 
     
    175175                $this->api->getDestinationURL($url,array_merge( 
    176176                        array('cut_object'=>$url,'grid_action'=>'return_field','expanded'=>$_GET['expanded'], 
    177                         'expander'=>$_GET['expander'],'id'=>$_GET['id']),  
     177                        'expander'=>$_GET['expander'],'id'=>$_GET['id']), 
    178178                                $args))); 
    179179    } 
     
    185185         */ 
    186186                $this->memorizeExpander(); 
    187         return /*$this->ajaxFunc('reloadGridRow(\''. 
    188                 $this->api->getDestinationURL($url,array_merge( 
    189                         array('cut_object'=>$url,'grid_action'=>'return_row','expanded'=>$_GET['expanded'], 
    190                         'expander'=>$_GET['expander'],'id'=>$_GET['id']),  
    191                                 $args)).'\',\''.$_GET['expanded'].'\','.$_GET['id'].')');*/ 
    192                         $this->reloadGridRow($_GET['expanded'],$_GET['id'],$url,array_merge( 
     187        return $this->reloadGridRow($_GET['expanded'],$_GET['id'],$url,array_merge( 
    193188                        array('expander'=>$_GET['expander']), $args)); 
    194189    } 
     
    199194                $this->api->getDestinationURL($url,array_merge( 
    200195                        array('cut_object'=>$url,'grid_action'=>'return_row','expanded'=>$grid_name, 
    201                         'id'=>$row_id),  
     196                        'id'=>$row_id), 
    202197                                $args)).'\',\''.$grid_name.'\','.$row_id.')'); 
    203198    }