chg: [galaxy clusters] selectCluster function opened up to the API for reasons.

pull/4075/head
iglocska 2019-01-28 11:15:23 +01:00
parent dea41dc58b
commit 5f006f2b33
1 changed files with 10 additions and 7 deletions

View File

@ -230,13 +230,16 @@ class GalaxiesController extends AppController
}
}
$onClickForm = 'quickSubmitGalaxyForm';
$this->set('items', $items);
$this->set('options', array( // set chosen (select picker) options
'functionName' => $onClickForm,
'multiple' => '-1',
));
$this->render('ajax/cluster_choice');
if ($this->_isRest()) {
return $this->RestResponse->viewData($items, $this->response->type());
} else {
$this->set('items', $items);
$this->set('options', array( // set chosen (select picker) options
'functionName' => $onClickForm,
'multiple' => '-1',
));
$this->render('ajax/cluster_choice');
}
}
public function attachCluster($target_id, $target_type = 'event')