Progress 7 for the dashboards
This commit is contained in:
@@ -88,17 +88,21 @@ class Dashboard extends Controller {
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function dashletInstanceForm($dasInsUid = '') {
|
public function dashletInstanceForm($data) {
|
||||||
try {
|
try {
|
||||||
$this->includeExtJS('dashboard/dashletInstanceForm', false);
|
$this->includeExtJS('dashboard/dashletInstanceForm', false);
|
||||||
$this->setView('dashboard/dashletInstanceForm');
|
$this->setView('dashboard/dashletInstanceForm');
|
||||||
if ($dasInsUid != '') {
|
if (!isset($data->DAS_INS_UID)) {
|
||||||
$this->setJSVar('dashletInstance', $this->pmDashlet->getDashletInstance($dasInsUid));
|
$data->DAS_INS_UID = '';
|
||||||
|
}
|
||||||
|
if ($data->DAS_INS_UID != '') {
|
||||||
|
$this->setJSVar('dashletInstance', $this->pmDashlet->getDashletInstance($data->DAS_INS_UID));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->setJSVar('dashletInstance', '');
|
$this->setJSVar('dashletInstance', new stdclass());
|
||||||
}
|
}
|
||||||
G::RenderPage('publish', 'extJs');
|
G::RenderPage('publish', 'extJs');
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
catch (Exception $error) {
|
catch (Exception $error) {
|
||||||
//ToDo: Display a error message
|
//ToDo: Display a error message
|
||||||
|
|||||||
Reference in New Issue
Block a user