is_progress: function() {
return $(this.progress_id).getStyle('display') == 'block';
},
- openConfigurationWindow: function(request, slideWindowObj) {
+ openConfigurationWindow: function(slideWindowObj) {
if(this.is_progress() === false) {
this.progress(true);
if(slideWindowObj.isFullSize() === true) {
slideWindowObj.resetSize();
}
- request.dispatch();
}
}
});
fullSizeEl : null,
search: null,
toolbar: null,
+ configurationObj: null,
+ loadRequest : null,
+ repeaterEl: null,
+ gridEl: null,
size: {
widthNormal : '437px',
}.bind(this));
},
+ setConfigurationObj: function(obj) {
+ this.configurationObj = obj;
+ },
+
+ setWindowElementsEvent: function(repeaterEl, gridEl, requestObj) {
+ this.repeaterEl = repeaterEl;
+ this.gridEl = gridEl;
+ this.loadRequest = requestObj;
+ this.setLoadRequest();
+ },
+
+ setLoadRequest: function() {
+ var dataList = [];
+ if($(this.gridEl)) {
+ dataList = $(this.gridEl).select('tr');
+ this.makeSortable();
+ } else if ($(this.repeaterEl + '_Container')) {
+ dataList = $(this.repeaterEl + '_Container').select('div.slide-window-element');
+ }
+
+ dataList.each(function(tr) {
+ $(tr).observe('click', function() {
+ var el = $(tr).down('input')
+ if(el) {
+ var val = el.getValue();
+ this.loadRequest.ActiveControl.CallbackParameter = val;
+ this.loadRequest.dispatch();
+ this.configurationObj.openConfigurationWindow(this);
+ }
+ }.bind(this, tr));
+ }.bind(this));
+ },
+
isConfigurationOpen: function() {
var is_open = false;
$$(this.elements.configurationWindows, this.elements.configurationProgress).each(function(el) {
return is_open;
},
+ sortTable: function (col, reverse) {
+ var table = document.getElementById(this.gridEl);
+ var tb = table.tBodies[0], tr = Array.prototype.slice.call(tb.rows, 0), i;
+ reverse = -((+reverse) || -1);
+ tr = tr.sort(function (a, b) {
+ var val;
+ var val_a = a.cells[col].textContent.trim();
+ var val_b = b.cells[col].textContent.trim();
+ if (!isNaN(parseFloat(val_a)) && isFinite(val_a) && !isNaN(parseFloat(val_b)) && isFinite(val_b)) {
+ val = val_a - val_b
+ } else {
+ val = val_a.localeCompare(val_b);
+ }
+ return reverse * (val);
+ });
+ for(i = 0; i < tr.length; ++i) tb.appendChild(tr[i]);
+ },
+
+ makeSortable: function () {
+ var self = this;
+ var table = document.getElementById(this.gridEl);
+ table.tHead.style.cursor = 'pointer';
+ var th = table.tHead, i;
+ th && (th = th.rows[0]) && (th = th.cells);
+ if (th) {
+ i = th.length;
+ } else {
+ return;
+ }
+ while (--i >= 0) (function (i) {
+ var dir = 1;
+ th[i].addEventListener('click', function () {
+ self.sortTable(i, (dir = 1 - dir));
+ });
+ }(i));
+ },
+
setSearch: function() {
var search_pattern = new RegExp(this.search.value)
$$('div[id="' + this.windowId + this.elements.containerSuffix + '"] div.' + this.elements.contentItems).each(function(value){
<div id="directors"><com:TLabel ForControl="Director" Text="<%[ Director: ]%>" /> <com:TActiveDropDownList ID="Director" OnTextChanged="director" /></div>
</div>
<div id="menu-left">
- <com:TActiveButton ID="StorageBtn" CssClass="storage-btn" Attributes.onmouseover="javascript:showTip(this, 'Storage Daemons', 'Configuration of storage daemons.');" ClientSide.OnLoading="$('<%=$this->StorageWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->StorageWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->StorageBtn->ClientID%>SlideWindow.setElementsCount();" />
- <com:TActiveButton ID="ClientBtn" CssClass="client-btn" Attributes.onmouseover="javascript:showTip(this, 'Clients', 'Configuration of clients daemons.');" ClientSide.OnLoading="$('<%=$this->ClientWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->ClientWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->ClientBtn->ClientID%>SlideWindow.setElementsCount();" />
- <com:TActiveButton ID="MediaBtn" CssClass="media-btn" Attributes.onmouseover="javascript:showTip(this, 'Volumes', 'Management of volumes.');" ClientSide.OnLoading="$('<%=$this->VolumeWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->VolumeWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->MediaBtn->ClientID%>SlideWindow.setElementsCount();" />
- <com:TActiveButton ID="PoolBtn" CssClass="pool-btn" Attributes.onmouseover="javascript:showTip(this, 'Pools', 'Management of volumes pools.');" ClientSide.OnLoading="$('<%=$this->PoolWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->PoolWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->PoolBtn->ClientID%>SlideWindow.setElementsCount();" />
- <com:TActiveButton ID="JobBtn" CssClass="job-btn" Attributes.onmouseover="javascript:showTip(this, 'Jobs', 'Jobs settings.');" ClientSide.OnLoading="$('<%=$this->JobWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->JobWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->JobBtn->ClientID%>SlideWindow.setElementsCount();" />
- <com:TActiveButton ID="JobRunBtn" CssClass="jobrun-btn" Attributes.onmouseover="javascript:showTip(this, 'Run job', 'Starting jobs.');" ClientSide.OnLoading="$('<%=$this->JobRunWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->JobRunWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->JobRunBtn->ClientID%>SlideWindow.setElementsCount();" />
+ <com:TActiveButton ID="StorageBtn" CssClass="storage-btn" Attributes.onmouseover="javascript:showTip(this, 'Storage Daemons', 'Configuration of storage daemons.');" ClientSide.OnLoading="$('<%=$this->StorageWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->StorageWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->StorageBtn->ClientID%>SlideWindow.setElementsCount();storageSlideWindowObj.setWindowElementsEvent('<%=$this->StorageWindow->Repeater->ClientID%>', '<%=$this->StorageWindow->DataGrid->ClientID%>', <%=$this->StorageWindow->DataElementCall->ActiveControl->Javascript%>);" />
+ <com:TActiveButton ID="ClientBtn" CssClass="client-btn" Attributes.onmouseover="javascript:showTip(this, 'Clients', 'Configuration of clients daemons.');" ClientSide.OnLoading="$('<%=$this->ClientWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->ClientWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->ClientBtn->ClientID%>SlideWindow.setElementsCount();clientSlideWindowObj.setWindowElementsEvent('<%=$this->ClientWindow->Repeater->ClientID%>', '<%=$this->ClientWindow->DataGrid->ClientID%>', <%=$this->ClientWindow->DataElementCall->ActiveControl->Javascript%>);" />
+ <com:TActiveButton ID="MediaBtn" CssClass="media-btn" Attributes.onmouseover="javascript:showTip(this, 'Volumes', 'Management of volumes.');" ClientSide.OnLoading="$('<%=$this->VolumeWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->VolumeWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->MediaBtn->ClientID%>SlideWindow.setElementsCount();volumeSlideWindowObj.setWindowElementsEvent('<%=$this->VolumeWindow->Repeater->ClientID%>', '<%=$this->VolumeWindow->DataGrid->ClientID%>', <%=$this->VolumeWindow->DataElementCall->ActiveControl->Javascript%>);" />
+
+ <com:TActiveButton ID="PoolBtn" CssClass="pool-btn" Attributes.onmouseover="javascript:showTip(this, 'Pools', 'Management of volumes pools.');" ClientSide.OnLoading="$('<%=$this->PoolWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->PoolWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->PoolBtn->ClientID%>SlideWindow.setElementsCount();poolSlideWindowObj.setWindowElementsEvent('<%=$this->PoolWindow->Repeater->ClientID%>', '<%=$this->PoolWindow->DataGrid->ClientID%>', <%=$this->PoolWindow->DataElementCall->ActiveControl->Javascript%>);" />
+ <com:TActiveButton ID="JobBtn" CssClass="job-btn" Attributes.onmouseover="javascript:showTip(this, 'Jobs', 'Jobs settings.');" ClientSide.OnLoading="$('<%=$this->JobWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->JobWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->JobBtn->ClientID%>SlideWindow.setElementsCount();jobSlideWindowObj.setWindowElementsEvent('<%=$this->JobWindow->Repeater->ClientID%>', '<%=$this->JobWindow->DataGrid->ClientID%>', <%=$this->JobWindow->DataElementCall->ActiveControl->Javascript%>);" />
+ <com:TActiveButton ID="JobRunBtn" CssClass="jobrun-btn" Attributes.onmouseover="javascript:showTip(this, 'Run job', 'Starting jobs.');" ClientSide.OnLoading="$('<%=$this->JobRunWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'block'});" ClientSide.OnComplete="$('<%=$this->JobRunWindow->Controls[0]->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});<%=$this->JobRunBtn->ClientID%>SlideWindow.setElementsCount();jobRunSlideWindowObj.setWindowElementsEvent('<%=$this->JobRunWindow->Repeater->ClientID%>', '<%=$this->JobRunWindow->DataGrid->ClientID%>', <%=$this->JobRunWindow->DataElementCall->ActiveControl->Javascript%>);" />
<com:TActiveButton CssClass="restore-btn" OnClick="restore" Attributes.onmouseover="javascript:showTip(this, 'Restore', 'Restore wizard.');" />
<com:TActiveButton ID="SettingsWizardBtn" CssClass="setting-btn" OnClick="configuration" Attributes.onmouseover="javascript:showTip(this, 'Settings', 'Management settings wizard.');" />
</div>
$this->Visible = $param;
}
- public function getVisible() {
+ public function getVisible($checkParents = true) {
return $this->Visible;
}
}
-?>
\ No newline at end of file
+?>
<div class="text"><com:TLabel ForControl="AutoPrune" Text="<%[ AutoPrune: ]%>" /></div>
<div class="field"><com:TActiveCheckBox ID="AutoPrune" AutoPostBack="false" /></div>
</div>
- <com:TCallback ID="ReloadClients" OnCallback="Page.ClientWindow.prepareData" />
+ <com:TCallback ID="ReloadClients" OnCallback="Page.ClientWindow.prepareData" ClientSide.OnComplete="clientSlideWindowObj.setLoadRequest();" />
<script type="text/javascript">
function <%=$this->getPage()->ClientConfiguration->getMaster()->ClientID%>reloadWindow() {
var callback = <%= $this->ReloadClients->ActiveControl->Javascript %>;
$params = $this->getUrlParams('clients', $this->getPage()->ClientWindow->ID);
$clients = $this->Application->getModule('api')->get($params);
$isDetailView = $_SESSION['view' . $this->getPage()->ClientWindow->ID] == 'details';
- $clientsList = $this->Application->getModule('misc')->objectToArray($clients->output);
- $this->RepeaterShow->Visible = !$isDetailView;
- $this->Repeater->DataSource = $isDetailView === false ? $clientsList : array();
- $this->Repeater->dataBind();
- $this->DataGridShow->Visible = $isDetailView;
- $this->DataGrid->DataSource = $isDetailView === true ? $clientsList : array();
- $this->DataGrid->dataBind();
+ if($isDetailView === true) {
+ $this->RepeaterShow->Visible = false;
+ $this->DataGridShow->Visible = true;
+ $this->DataGrid->DataSource = $this->Application->getModule('misc')->objectToArray($clients->output);
+ $this->DataGrid->dataBind();
+ } else {
+ $this->RepeaterShow->Visible = true;
+ $this->DataGridShow->Visible = false;
+ $this->Repeater->DataSource = $clients->output;
+ $this->Repeater->dataBind();
+ }
}
}
}
}
}
}
-?>
\ No newline at end of file
+?>
<%@ MasterClass="Application.Portlets.SlideWindow"%>
<com:TContent ID="SlideWindowContent">
+ <script type="text/javascript">
+ document.observe("dom:loaded", function() {
+ clientConfigurationWindow = ConfigurationWindow<%=$this->getPage()->ClientConfiguration->getMaster()->ClientID%>;
+ clientSlideWindowObj = <%=$this->getPage()->ClientWindow->ShowID%>SlideWindow;
+ clientSlideWindowObj.setConfigurationObj(clientConfigurationWindow);
+ });
+ </script>
<com:TActivePanel ID="RepeaterShow">
- <script type="text/javascript">
- document.observe("dom:loaded", function() {
- clientConfigurationWindow = ConfigurationWindow<%=$this->getPage()->ClientConfiguration->getMaster()->ClientID%>;
- clientSlideWindowObj = <%=$this->getPage()->ClientWindow->ShowID%>SlideWindow;
- });
- </script>
<com:TActiveRepeater ID="Repeater">
<prop:ItemTemplate>
- <com:TPanel ID="ClientElement" CssClass="slide-window-element" ToolTip="<%=@$this->DataItem['uname']%>">
- <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/client-icon.png" alt="" /><%=@$this->DataItem['name']%>
+ <com:TPanel ID="ClientElement" CssClass="slide-window-element" ToolTip="<%=@$this->DataItem->uname%>">
+ <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/client-icon.png" alt="" /><%=@$this->DataItem->name%>
+ <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->clientid) ? $this->DataItem->clientid : ''%>" />
</com:TPanel>
- <com:TCallback ID="ClientElementCall" OnCallback="Page.ClientWindow.configure" ActiveControl.CallbackParameter="<%=@$this->DataItem['clientid']%>">
- <prop:ClientSide.OnComplete>
- clientConfigurationWindow.show();
- clientConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->ClientElement->ClientID%>').observe('click', function() {
- var request = <%= $this->ClientElementCall->ActiveControl->Javascript %>;
- clientConfigurationWindow.openConfigurationWindow(request, clientSlideWindowObj);
- });
- </script>
</prop:ItemTemplate>
</com:TActiveRepeater>
</com:TActivePanel>
<com:TActiveDataGrid
ID="DataGrid"
AutoGenerateColumns="false"
- AllowSorting="true"
+ AllowSorting="false"
OnSortCommand="sortDataGrid"
CellPadding="5px"
CssClass="window-section-detail"
>
<com:TActiveTemplateColumn HeaderText="Client name" SortExpression="name">
<prop:ItemTemplate>
- <com:TPanel ID="ClientTableElement"><%=$this->getParent()->Data['name']%></com:TPanel>
- <com:TCallback ID="ClientTableElementCall" OnCallback="Page.ClientWindow.configure" ActiveControl.CallbackParameter="<%=$this->getParent()->Data['clientid']%>">
- <prop:ClientSide.OnComplete>
- clientConfigurationWindow.show();
- clientConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->ClientTableElement->ClientID%>').up('tr').observe('click', function() {
- var request = <%= $this->ClientTableElementCall->ActiveControl->Javascript %>;
- clientConfigurationWindow.openConfigurationWindow(request, clientSlideWindowObj);
- });
- </script>
+ <div><%=$this->getParent()->Data['name']%></div>
+ <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['clientid']%>" />
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveTemplateColumn ItemStyle.HorizontalAlign="Center" HeaderText="AutoPrune" SortExpression="autoprune">
</com:TActiveTemplateColumn>
</com:TActiveDataGrid>
</com:TActivePanel>
+ <com:TCallback ID="DataElementCall" OnCallback="Page.ClientWindow.configure">
+ <prop:ClientSide OnComplete="clientConfigurationWindow.show();clientConfigurationWindow.progress(false);" />
+ </com:TCallback>
</com:TContent>
<com:TActiveCustomValidator ID="PriorityValidator" ValidationGroup="JobGroup" ControlToValidate="Priority" ErrorMessage="<%[ Priority value must be integer greather than 0. ]%>" ControlCssClass="validation-error" Display="None" OnServerValidate="priorityValidator" ClientSide.OnValidationError="IsInvalid<%=$this->getPage()->JobConfiguration->getMaster()->ClientID%> = true" />
</div>
</div>
- <com:TCallback ID="ReloadJobs" OnCallback="Page.JobWindow.prepareData" />
+ <com:TCallback ID="ReloadJobs" OnCallback="Page.JobWindow.prepareData" ClientSide.OnComplete="jobSlideWindowObj.setLoadRequest();" />
<script type="text/javascript">
function <%=$this->getPage()->JobConfiguration->getMaster()->ClientID%>reloadWindow() {
var callback = <%= $this->ReloadJobs->ActiveControl->Javascript %>;
$params = $this->getUrlParams('jobs', $this->getPage()->JobWindow->ID);
$jobs = $this->Application->getModule('api')->get($params);
$isDetailView = $_SESSION['view' . $this->getPage()->JobWindow->ID] == 'details';
- $this->RepeaterShow->Visible = !$isDetailView;
- $this->Repeater->DataSource = $isDetailView == false ? $jobs->output : array();
- $this->Repeater->dataBind();
- $this->DataGridShow->Visible = $isDetailView;
- $this->DataGrid->DataSource = $isDetailView === true ? $this->Application->getModule('misc')->objectToArray($jobs->output) : array();
- $this->DataGrid->dataBind();
+ if($isDetailView === true) {
+ $this->RepeaterShow->Visible = false;
+ $this->DataGridShow->Visible = true;
+ $this->DataGrid->DataSource = $this->Application->getModule('misc')->objectToArray($jobs->output);
+ $this->DataGrid->dataBind();
+ } else {
+ $this->RepeaterShow->Visible = true;
+ $this->DataGridShow->Visible = false;
+ $this->Repeater->DataSource = $jobs->output;
+ $this->Repeater->dataBind();
+ }
}
}
}
- public function sortDataGrid($sender, $param) {
+ public function sortDataGrid($sender, $param) {
$params = $this->getUrlParams('jobs', $this->getPage()->JobWindow->ID);
$data = $this->Application->getModule('api')->get($params)->output;
$data = $this->Application->getModule('misc')->objectToArray($data);
<%@ MasterClass="Application.Portlets.SlideWindow" %>
<com:TContent ID="SlideWindowContent">
+ <script type="text/javascript">
+ document.observe("dom:loaded", function() {
+ jobConfigurationWindow = ConfigurationWindow<%=$this->getPage()->JobConfiguration->getMaster()->ClientID%>;
+ jobSlideWindowObj = <%=$this->getPage()->JobWindow->ShowID%>SlideWindow;
+ jobSlideWindowObj.setConfigurationObj(jobConfigurationWindow);
+ });
+ </script>
<com:TActivePanel ID="RepeaterShow">
- <script type="text/javascript">
- document.observe("dom:loaded", function() {
- jobConfigurationWindow = ConfigurationWindow<%=$this->getPage()->JobConfiguration->getMaster()->ClientID%>;
- jobSlideWindowObj = <%=$this->getPage()->JobWindow->ShowID%>SlideWindow;
- });
- </script>
<com:TActiveRepeater ID="Repeater">
<prop:ItemTemplate>
<com:TPanel ID="JobElement" CssClass="slide-window-element">
<img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/job-icon.png" alt="" /> [<%=@$this->DataItem->jobid%>] <%=@$this->DataItem->name%>
+ <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->jobid) ? $this->DataItem->jobid : ''%>" />
</com:TPanel>
- <com:TCallback ID="JobElementCall" OnCallback="Page.JobWindow.configure" ActiveControl.CallbackParameter="<%=@$this->DataItem->jobid%>">
- <prop:ClientSide.OnComplete>
- jobConfigurationWindow.show();
- jobConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->JobElement->ClientID%>').observe('click', function() {
- var request = <%= $this->JobElementCall->ActiveControl->Javascript %>;
- jobConfigurationWindow.openConfigurationWindow(request, jobSlideWindowObj);
- });
- </script>
</prop:ItemTemplate>
</com:TActiveRepeater>
</com:TActivePanel>
<com:TActiveDataGrid
ID="DataGrid"
AutoGenerateColumns="false"
- AllowSorting="true"
+ AllowSorting="false"
OnSortCommand="sortDataGrid"
CellPadding="5px"
CssClass="window-section-detail"
/>
<com:TActiveTemplateColumn HeaderText="Job name" SortExpression="name">
<prop:ItemTemplate>
- <com:TPanel ID="JobTableElement"><%=$this->getParent()->Data['name']%></com:TPanel>
- <com:TCallback ID="JobTableElementCall" OnCallback="Page.JobWindow.configure" ActiveControl.CallbackParameter="<%=$this->getParent()->Data['jobid']%>">
- <prop:ClientSide.OnComplete>
- jobConfigurationWindow.show();
- jobConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->JobTableElement->ClientID%>').up('tr').observe('click', function() {
- var request = <%= $this->JobTableElementCall->ActiveControl->Javascript %>;
- jobConfigurationWindow.openConfigurationWindow(request, jobSlideWindowObj);
- });
- </script>
+ <div><%=$this->getParent()->Data['name']%></div>
+ <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['jobid']%>" />
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveTemplateColumn ItemTemplate="<%=$this->getPage()->JobWindow->getJobType($this->getParent()->Data['type'])%>" SortExpression="type">
/>
</com:TActiveDataGrid>
</com:TActivePanel>
+ <com:TCallback ID="DataElementCall" OnCallback="Page.JobWindow.configure">
+ <prop:ClientSide OnComplete="jobConfigurationWindow.show();jobConfigurationWindow.progress(false);" />
+ </com:TCallback>
</com:TContent>
<com:TActiveCustomValidator ID="PriorityValidator" ValidationGroup="JobRunGroup" ControlToValidate="Priority" ErrorMessage="<%[ Priority value must be integer greather than 0. ]%>" ControlCssClass="validation-error" Display="None" OnServerValidate="priorityValidator" ClientSide.OnValidationError="IsInvalid<%=$this->getPage()->JobRunConfiguration->ClientID%> = true" />
</div>
</div>
- <com:TCallback ID="ReloadJobs" OnCallback="Page.JobRunWindow.prepareData" />
+ <com:TCallback ID="ReloadJobs" OnCallback="Page.JobRunWindow.prepareData" ClientSide.OnComplete="jobRunSlideWindowObj.setLoadRequest();" />
<script type="text/javascript">
function <%=$this->getPage()->JobRunConfiguration->ClientID%>reloadWindow() {
var callback = <%= $this->ReloadJobs->ActiveControl->Javascript %>;
$jobTasks = $this->Application->getModule('api')->get($params)->output;
$jobs = $this->prepareJobs($jobTasks);
$isDetailView = $_SESSION['view' . $this->getPage()->JobRunWindow->ID] == 'details';
- $this->RepeaterShow->Visible = !$isDetailView;
- $this->Repeater->DataSource = $isDetailView === false ? $jobs : array();
- $this->Repeater->dataBind();
- $this->DataGridShow->Visible = $isDetailView;
- $this->DataGrid->DataSource = $isDetailView === true ? $jobs : array();
- $this->DataGrid->dataBind();
+
+ if($isDetailView === true) {
+ $this->RepeaterShow->Visible = false;
+ $this->DataGridShow->Visible = true;
+ $this->DataGrid->DataSource = $jobs;
+ $this->DataGrid->dataBind();
+ } else {
+ $this->RepeaterShow->Visible = true;
+ $this->DataGridShow->Visible = false;
+ $this->Repeater->DataSource = $jobs;
+ $this->Repeater->dataBind();
+ }
}
}
}
<%@ MasterClass="Application.Portlets.SlideWindow" %>
<com:TContent ID="SlideWindowContent">
+ <script type="text/javascript">
+ document.observe("dom:loaded", function() {
+ jobRunConfigurationWindow = ConfigurationWindow<%=$this->getPage()->JobRunConfiguration->getMaster()->ClientID%>;
+ jobRunSlideWindowObj = <%=$this->getPage()->JobRunWindow->ShowID%>SlideWindow;
+ jobRunSlideWindowObj.setConfigurationObj(jobRunConfigurationWindow);
+ });
+ </script>
<com:TActivePanel ID="RepeaterShow">
- <script type="text/javascript">
- document.observe("dom:loaded", function() {
- jobRunConfigurationWindow = ConfigurationWindow<%=$this->getPage()->JobRunConfiguration->getMaster()->ClientID%>;
- jobRunSlideWindowObj = <%=$this->getPage()->JobRunWindow->ShowID%>SlideWindow;
- });
- </script>
<com:TActiveRepeater ID="Repeater">
<prop:ItemTemplate>
<%=($this->getPage()->JobRunWindow->oldDirector != $this->DataItem['director']) ? '<div class="window-section"><span>Director: ' . $this->DataItem['director'] . '<span></div>': ''%>
<com:TPanel ID="JobRunElement" CssClass="slide-window-element" >
<img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/job-icon.png" alt="" /> <%=@$this->DataItem['name']%>
+ <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem['name']) ? $this->DataItem['name'] : ''%>" />
+
</com:TPanel>
- <com:TCallback ID="JobRunElementCall" OnCallback="Page.JobRunWindow.configure" ActiveControl.CallbackParameter="<%=@$this->DataItem['name']%>">
- <prop:ClientSide.OnComplete>
- jobRunConfigurationWindow.show();
- jobRunConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->JobRunElement->ClientID%>').observe('click', function() {
- var request = <%= $this->JobRunElementCall->ActiveControl->Javascript %>;
- jobRunConfigurationWindow.openConfigurationWindow(request, jobRunSlideWindowObj);
- });
- </script>
<%=!($this->getPage()->JobRunWindow->oldDirector = $this->DataItem['director'])%>
</prop:ItemTemplate>
</com:TActiveRepeater>
<com:TActiveDataGrid
ID="DataGrid"
AutoGenerateColumns="false"
- AllowSorting="true"
+ AllowSorting="false"
OnSortCommand="sortDataGrid"
CellPadding="5px"
CssClass="window-section-detail"
>
<com:TActiveTemplateColumn HeaderText="Job name" SortExpression="name">
<prop:ItemTemplate>
- <com:TPanel ID="JobRunTableElement"><%=$this->getParent()->DataItem['name']%></com:TPanel>
- <com:TCallback ID="JobRunTableElementCall" OnCallback="Page.JobRunWindow.configure" ActiveControl.CallbackParameter="<%=$this->getParent()->DataItem['name']%>">
- <prop:ClientSide.OnComplete>
- jobRunConfigurationWindow.show();
- jobRunConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->JobRunTableElement->ClientID%>').up('tr').observe('click', function() {
- var request = <%= $this->JobRunTableElementCall->ActiveControl->Javascript %>;
- jobRunConfigurationWindow.openConfigurationWindow(request, jobRunSlideWindowObj);
- });
- </script>
+ <div><%=$this->getParent()->DataItem['name']%></div>
+ <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->DataItem['name']%>" />
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveBoundColumn
/>
</com:TActiveDataGrid>
</com:TActivePanel>
+ <com:TCallback ID="DataElementCall" OnCallback="Page.JobRunWindow.configure">
+ <prop:ClientSide OnComplete="jobRunConfigurationWindow.show();jobRunConfigurationWindow.progress(false);" />
+ </com:TCallback>
</com:TContent>
<div class="text"><com:TLabel ForControl="ActionOnPurge" Text="<%[ Action on purge: ]%>" /></div>
<div class="field"><com:TActiveCheckBox ID="ActionOnPurge" AutoPostBack="false" /></div>
</div>
- <com:TCallback ID="ReloadPools" OnCallback="Page.PoolWindow.prepareData" />
+ <com:TCallback ID="ReloadPools" OnCallback="Page.PoolWindow.prepareData" ClientSide.OnComplete="poolSlideWindowObj.setLoadRequest();" />
<script type="text/javascript">
function <%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>reloadWindow() {
var callback = <%= $this->ReloadPools->ActiveControl->Javascript %>;
$params = $this->getUrlParams('pools', $this->getPage()->PoolWindow->ID);
$pools = $this->Application->getModule('api')->get($params);
$isDetailView = $_SESSION['view' . $this->getPage()->PoolWindow->ID] == 'details';
- $this->RepeaterShow->Visible = !$isDetailView;
- $this->Repeater->DataSource = $isDetailView === false ? $pools->output : array();
- $this->Repeater->dataBind();
- $this->DataGridShow->Visible = $isDetailView;
- $this->DataGrid->DataSource = $isDetailView === true ? $this->Application->getModule('misc')->objectToArray($pools->output) : array();
- $this->DataGrid->dataBind();
+ if($isDetailView === true) {
+ $this->RepeaterShow->Visible = false;
+ $this->DataGridShow->Visible = true;
+ $this->DataGrid->DataSource = $this->Application->getModule('misc')->objectToArray($pools->output);
+ $this->DataGrid->dataBind();
+ } else {
+ $this->RepeaterShow->Visible = true;
+ $this->DataGridShow->Visible = false;
+ $this->Repeater->DataSource = $pools->output;
+ $this->Repeater->dataBind();
+ }
}
}
}
}
}
}
-?>
\ No newline at end of file
+?>
<%@ MasterClass="Application.Portlets.SlideWindow"%>
<com:TContent ID="SlideWindowContent">
+ <script type="text/javascript">
+ document.observe("dom:loaded", function() {
+ poolConfigurationWindow = ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>;
+ poolSlideWindowObj = <%=$this->getPage()->PoolWindow->ShowID%>SlideWindow;
+ poolSlideWindowObj.setConfigurationObj(poolConfigurationWindow);
+ });
+ </script>
<com:TActivePanel ID="RepeaterShow">
- <script type="text/javascript">
- document.observe("dom:loaded", function() {
- poolConfigurationWindow = ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>;
- poolSlideWindowObj = <%=$this->getPage()->PoolWindow->ShowID%>SlideWindow;
- });
- </script>
<com:TActiveRepeater ID="Repeater">
<prop:ItemTemplate>
<com:TPanel ID="PoolElement" CssClass="slide-window-element">
<img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/pool.png" alt="" /><%=@$this->DataItem->name%>
+ <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->poolid) ? $this->DataItem->poolid : ''%>" />
</com:TPanel>
- <com:TCallback ID="PoolElementCall" OnCallback="Page.PoolWindow.configure" ActiveControl.CallbackParameter="<%=@$this->DataItem->poolid%>">
- <prop:ClientSide.OnComplete>
- poolConfigurationWindow.show();
- poolConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->PoolElement->ClientID%>').observe('click', function() {
- var request = <%= $this->PoolElementCall->ActiveControl->Javascript %>;
- poolConfigurationWindow.openConfigurationWindow(request, poolSlideWindowObj);
- });
- </script>
</prop:ItemTemplate>
</com:TActiveRepeater>
</com:TActivePanel>
<com:TActiveDataGrid
ID="DataGrid"
AutoGenerateColumns="false"
- AllowSorting="true"
+ AllowSorting="false"
OnSortCommand="sortDataGrid"
CellPadding="5px"
CssClass="window-section-detail"
>
<com:TActiveTemplateColumn HeaderText="Pool name" SortExpression="name">
<prop:ItemTemplate>
- <com:TPanel ID="PoolTableElement"><%=$this->getParent()->Data['name']%></com:TPanel>
- <com:TCallback ID="PoolTableElementCall" OnCallback="Page.PoolWindow.configure" ActiveControl.CallbackParameter="<%=$this->getParent()->Data['poolid']%>">
- <prop:ClientSide.OnComplete>
- poolConfigurationWindow.show();
- poolConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->PoolTableElement->ClientID%>').up('tr').observe('click', function() {
- var request = <%= $this->PoolTableElementCall->ActiveControl->Javascript %>;
- poolConfigurationWindow.openConfigurationWindow(request, poolSlideWindowObj);
- });
- </script>
+ <div><%=$this->getParent()->Data['name']%></div>
+ <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['poolid']%>" />
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveBoundColumn
</com:TActiveTemplateColumn>
</com:TActiveDataGrid>
</com:TActivePanel>
+ <com:TCallback ID="DataElementCall" OnCallback="Page.PoolWindow.configure">
+ <prop:ClientSide OnComplete="poolConfigurationWindow.show();poolConfigurationWindow.progress(false);" />
+ </com:TCallback>
</com:TContent>
</prop:ClientSide.OnLoading>
<prop:ClientSide.OnComplete>
$('<%=$this->UniqueID%>-slide-window-progress').setStyle({'display': 'none'});
+ <%=$this->ShowID%>SlideWindow.setLoadRequest();
</prop:ClientSide.OnComplete>
</com:TCallback>
<script type="text/javascript">
$params = $this->getUrlParams('storages', $this->getPage()->StorageWindow->ID);
$storages = $this->Application->getModule('api')->get($params);
$isDetailView = $_SESSION['view' . $this->getPage()->StorageWindow->ID] == 'details';
- $this->RepeaterShow->Visible = !$isDetailView;
- $this->Repeater->DataSource = $isDetailView === false ? $storages->output : array();
- $this->Repeater->dataBind();
- $this->DataGridShow->Visible = $isDetailView;
- $this->DataGrid->DataSource = $isDetailView === true ? $this->Application->getModule('misc')->objectToArray($storages->output) : array();
- $this->DataGrid->dataBind();
+ if($isDetailView === true) {
+ $this->RepeaterShow->Visible = false;
+ $this->DataGridShow->Visible = true;
+ $this->DataGrid->DataSource = $this->Application->getModule('misc')->objectToArray($storages->output);
+ $this->DataGrid->dataBind();
+ } else {
+ $this->RepeaterShow->Visible = true;
+ $this->DataGridShow->Visible = false;
+ $this->Repeater->DataSource = $storages->output;
+ $this->Repeater->dataBind();
+ }
}
}
}
- public function sortDataGrid($sender, $param) {
+ public function sortDataGrid($sender, $param) {
$params = $this->getUrlParams('storages', $this->getPage()->StorageWindow->ID);
$data = $this->Application->getModule('api')->get($params)->output;
$data = $this->Application->getModule('misc')->objectToArray($data);
<%@ MasterClass="Application.Portlets.SlideWindow" %>
<com:TContent ID="SlideWindowContent">
+ <script type="text/javascript">
+ document.observe("dom:loaded", function() {
+ storageConfigurationWindow = ConfigurationWindow<%=$this->getPage()->StorageConfiguration->getMaster()->ClientID%>;
+ storageSlideWindowObj = <%=$this->getPage()->StorageWindow->ShowID%>SlideWindow;
+ storageSlideWindowObj.setConfigurationObj(storageConfigurationWindow);
+ });
+ </script>
<com:TActivePanel ID="RepeaterShow">
- <script type="text/javascript">
- document.observe("dom:loaded", function() {
- storageConfigurationWindow = ConfigurationWindow<%=$this->getPage()->StorageConfiguration->getMaster()->ClientID%>;
- storageSlideWindowObj = <%=$this->getPage()->StorageWindow->ShowID%>SlideWindow;
- });
- </script>
<com:TActiveRepeater ID="Repeater">
<prop:ItemTemplate>
<com:TPanel ID="StorageElement" CssClass="slide-window-element">
<img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/server-storage-icon.png" alt="" /><%=@$this->DataItem->name%>
+ <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->storageid) ? $this->DataItem->storageid : ''%>" />
</com:TPanel>
- <com:TCallback ID="StorageElementCall" OnCallback="Page.StorageWindow.configure" ActiveControl.CallbackParameter="<%=@$this->DataItem->storageid%>">
- <prop:ClientSide.OnComplete>
- storageConfigurationWindow.show();
- storageConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->StorageElement->ClientID%>').observe('click', function() {
- var request = <%= $this->StorageElementCall->ActiveControl->Javascript %>;
- storageConfigurationWindow.openConfigurationWindow(request, storageSlideWindowObj);
- });
- </script>
</prop:ItemTemplate>
</com:TActiveRepeater>
</com:TActivePanel>
<com:TActiveDataGrid
ID="DataGrid"
AutoGenerateColumns="false"
- AllowSorting="true"
+ AllowSorting="false"
OnSortCommand="sortDataGrid"
CellPadding="5px"
CssClass="window-section-detail"
>
<com:TActiveTemplateColumn HeaderText="Storage name" SortExpression="name">
<prop:ItemTemplate>
- <com:TPanel ID="StorageTableElement"><%=$this->getParent()->Data['name']%></com:TPanel>
- <com:TCallback ID="StorageTableElementCall" OnCallback="Page.StorageWindow.configure" ActiveControl.CallbackParameter="<%=$this->getParent()->Data['storageid']%>">
- <prop:ClientSide.OnComplete>
- storageConfigurationWindow.show();
- storageConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->StorageTableElement->ClientID%>').up('tr').observe('click', function() {
- var request = <%= $this->StorageTableElementCall->ActiveControl->Javascript %>;
- storageConfigurationWindow.openConfigurationWindow(request, storageSlideWindowObj);
- });
- </script>
+ <div><%=$this->getParent()->Data['name']%></div>
+ <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['storageid']%>" />
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveTemplateColumn HeaderText="Autochanger" SortExpression="autochanger" ItemStyle.HorizontalAlign="Center">
</com:TActiveTemplateColumn>
</com:TActiveDataGrid>
</com:TActivePanel>
+ <com:TCallback ID="DataElementCall" OnCallback="Page.StorageWindow.configure">
+ <prop:ClientSide OnComplete="storageConfigurationWindow.show();storageConfigurationWindow.progress(false);" />
+ </com:TCallback>
</com:TContent>
<div class="text"><com:TLabel ForControl="InChanger" Text="<%[ In changer: ]%>" /></div>
<div class="field"><com:TActiveCheckBox ID="InChanger" AutoPostBack="false" /></div>
</div>
- <com:TCallback ID="ReloadVolumes" OnCallback="Page.VolumeWindow.prepareData" />
+ <com:TCallback ID="ReloadVolumes" OnCallback="Page.VolumeWindow.prepareData" ClientSide.OnComplete="volumeSlideWindowObj.setLoadRequest();" />
<script type="text/javascript">
function <%=$this->getPage()->VolumeConfiguration->getMaster()->ClientID%>reloadWindow() {
if(typeof(IsInvalid<%=$this->getPage()->VolumeConfiguration->getMaster()->ClientID%>) == 'undefined') {
array_push($params, '?showpools=1');
$volumes = $this->Application->getModule('api')->get($params);
$isDetailView = $_SESSION['view' . $this->getPage()->VolumeWindow->ID] == 'details';
- $this->RepeaterShow->Visible = !$isDetailView;
- $this->Repeater->DataSource = $volumes->output;
- $this->Repeater->dataBind();
- $this->DataGridShow->Visible = $isDetailView;
- $this->DataGrid->DataSource = $this->Application->getModule('misc')->objectToArray($volumes->output);
- $this->DataGrid->dataBind();
+ if($isDetailView === true) {
+ $this->RepeaterShow->Visible = false;
+ $this->DataGridShow->Visible = true;
+ $this->DataGrid->DataSource = $this->Application->getModule('misc')->objectToArray($volumes->output);
+ $this->DataGrid->dataBind();
+
+ } else {
+ $this->Repeater->DataSource = $volumes->output;
+ $this->Repeater->dataBind();
+ $this->RepeaterShow->Visible = true;
+ $this->DataGridShow->Visible = false;
+ }
}
}
}
return $data;
}
- public function sortDataGrid($sender, $param) {
+ public function sortDataGrid($sender, $param) {
$params = $this->getUrlParams('volumes', $this->getPage()->VolumeWindow->ID);
array_push($params, '?showpools=1');
$data = $this->Application->getModule('api')->get($params)->output;
<%@ MasterClass="Application.Portlets.SlideWindow" %>
<com:TContent ID="SlideWindowContent">
- <com:TActivePanel ID="RepeaterShow">
<script type="text/javascript">
document.observe("dom:loaded", function() {
volumeConfigurationWindow = ConfigurationWindow<%=$this->getPage()->VolumeConfiguration->getMaster()->ClientID%>;
volumeSlideWindowObj = <%=$this->getPage()->VolumeWindow->ShowID%>SlideWindow;
+ volumeSlideWindowObj.setConfigurationObj(volumeConfigurationWindow);
});
</script>
+ <com:TActivePanel ID="RepeaterShow">
<com:TActiveRepeater ID="Repeater">
<prop:ItemTemplate>
<%=(isset($this->DataItem->pool->name) && $this->getPage()->VolumeWindow->oldPool != $this->DataItem->pool->name) ? '<div class="window-section"><span>Pool: ' . $this->DataItem->pool->name . '<span></div>': ''%>
<com:TPanel ID="VolumeElement" CssClass="slide-window-element" ToolTip="<%=(isset($this->DataItem->recycle) && $this->DataItem->recycle == 1 && !empty($this->DataItem->lastwritten) && in_array($this->DataItem->volstatus, array('Full', 'Used'))) ? 'When expire: ' . date( 'Y-m-d H:i:s', (strtotime($this->DataItem->lastwritten) + $this->DataItem->volretention)) : ''%> Last written: <%=!empty($this->DataItem->lastwritten) ? $this->DataItem->lastwritten : 'never written'%>">
<img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/media-icon.png" alt="" /><%=@$this->DataItem->volumename%>
<div id="<%=isset($this->DataItem->volumename) ? $this->DataItem->volumename : ''%>_sizebar" class="status-bar-<%=isset($this->DataItem->volstatus) ? strtolower($this->DataItem->volstatus) : ''%>"><%=isset($this->DataItem->volstatus) ? $this->DataItem->volstatus : ''%></div>
+ <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->mediaid) ? $this->DataItem->mediaid : ''%>" />
</com:TPanel>
- <com:TCallback ID="VolumeElementCall" OnCallback="Page.VolumeWindow.configure" ActiveControl.CallbackParameter="<%=@$this->DataItem->mediaid%>">
- <prop:ClientSide.OnComplete>
- volumeConfigurationWindow.show();
- volumeConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->VolumeElement->ClientID%>').observe('click', function() {
- var request = <%= $this->VolumeElementCall->ActiveControl->Javascript %>;
- volumeConfigurationWindow.openConfigurationWindow(request, volumeSlideWindowObj);
- });
- </script>
<%=!(isset($this->DataItem->pool->name) ? ($this->getPage()->VolumeWindow->oldPool = $this->DataItem->pool->name) : false)%>
</prop:ItemTemplate>
</com:TActiveRepeater>
<com:TActiveDataGrid
ID="DataGrid"
AutoGenerateColumns="false"
- AllowSorting="true"
+ AllowSorting="false"
OnSortCommand="sortDataGrid"
CellPadding="5px"
CssClass="window-section-detail"
>
<com:TActiveTemplateColumn HeaderText="Volume name" SortExpression="volumename">
<prop:ItemTemplate>
- <com:TPanel ID="VolumeTableElement"><%=$this->getParent()->Data['volumename']%></com:TPanel>
- <com:TCallback ID="VolumeTableElementCall" OnCallback="Page.VolumeWindow.configure" ActiveControl.CallbackParameter="<%=$this->getParent()->Data['mediaid']%>">
- <prop:ClientSide.OnComplete>
- volumeConfigurationWindow.show();
- volumeConfigurationWindow.progress(false);
- </prop:ClientSide.OnComplete>
- </com:TCallback>
- <script type="text/javascript">
- $('<%=$this->VolumeTableElement->ClientID%>').up('tr').observe('click', function() {
- var request = <%= $this->VolumeTableElementCall->ActiveControl->Javascript %>;
- volumeConfigurationWindow.openConfigurationWindow(request, volumeSlideWindowObj);
- });
- </script>
+ <div><%=$this->getParent()->Data['volumename']%></div>
+ <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['mediaid']%>" />
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveBoundColumn
/>
</com:TActiveDataGrid>
</com:TActivePanel>
+ <com:TCallback ID="DataElementCall" OnCallback="Page.VolumeWindow.configure">
+ <prop:ClientSide OnComplete="volumeConfigurationWindow.show();volumeConfigurationWindow.progress(false);" />
+ </com:TCallback>
</com:TContent>