Changeset 747
- Timestamp:
- 08/28/08 11:36:20 (3 months ago)
- Files:
-
- trunk/lib/Ajax.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/Ajax.php
r735 r747 16 16 17 17 public $spinner = null; 18 18 19 19 protected $timeout=null; 20 20 … … 65 65 $this->timeout=null; 66 66 } 67 67 68 68 return $this; 69 69 } … … 75 75 * 1) update DB 76 76 * 2) reload a region to display updated data 77 * 77 * 78 78 * as AJAX is asynchronious technology, (1) could finish after (2) is finished, and 79 79 * you won't see any updates on the page … … 88 88 return $this->ajaxFunc("document.location='".$url."'"); 89 89 } 90 90 91 91 function loadRegionURL($region_id,$url){ 92 92 $this->ajaxFunc("aasn('$region_id','$url')"); … … 162 162 $this->memorizeExpander(); 163 163 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), 165 165 $args))); 166 166 } … … 175 175 $this->api->getDestinationURL($url,array_merge( 176 176 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']), 178 178 $args))); 179 179 } … … 185 185 */ 186 186 $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( 193 188 array('expander'=>$_GET['expander']), $args)); 194 189 } … … 199 194 $this->api->getDestinationURL($url,array_merge( 200 195 array('cut_object'=>$url,'grid_action'=>'return_row','expanded'=>$grid_name, 201 'id'=>$row_id), 196 'id'=>$row_id), 202 197 $args)).'\',\''.$grid_name.'\','.$row_id.')'); 203 198 }
