public $openWindow = null;
- public $windowIds = array('Storage', 'Client', 'Media', 'Pool', 'Job', 'JobRun');
+ public $initWindowId = null;
+
+ public $initElementId = null;
+
+ public $windowIds = array('Storage', 'Client', 'Volume', 'Pool', 'Job', 'JobRun');
public function onInit($param) {
parent::onInit($param);
+
+ if (!$this->IsPostBack && !$this->IsCallBack) {
+ $this->getModule('api')->initSessionCache(true);
+ }
+
$isConfigExists = $this->getModule('configuration')->isApplicationConfig();
if($isConfigExists === false) {
$this->goToPage('ConfigurationWizard');
$appConfig = $this->getModule('configuration')->getApplicationConfig();
$this->SettingsWizardBtn->Visible = $this->User->getIsAdmin();
- $this->MediaBtn->Visible = $this->User->getIsAdmin();
+ $this->VolumeBtn->Visible = $this->User->getIsAdmin();
$this->ClearBvfsCache->Visible = $this->User->getIsAdmin();
$this->Logging->Visible = $this->User->getIsAdmin();
public function setDebug($sender, $param) {
if($this->User->getIsAdmin() === true) {
$this->getModule('logging')->enableDebug($this->Logging->Checked);
+ $this->goToDefaultPage();
}
}
}
public function setWindowOpen() {
- if (isset($this->Request['open']) && in_array($this->Request['open'], $this->windowIds)) {
+ if (isset($this->Request['open']) && in_array($this->Request['open'], $this->windowIds) && $this->Request['open'] != 'JobRun') {
$btn = $this->Request['open'] . 'Btn';
$this->openWindow = $this->{$btn}->ClientID;
+ if (isset($this->Request['id']) && (is_numeric($this->Request['id']))) {
+ $this->initWindowId = $this->Request['open'];
+ $this->initElementId = $this->Request['id'];
+ }
}
}
}