]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Portlets/Console.tpl
baculum: Implement Polish language support
[bacula/bacula] / gui / baculum / protected / Portlets / Console.tpl
1 <script type="text/javascript">
2         $('console_launcher').observe('click', function(){
3                 Effect.toggle('<%=$this->ConsoleContainer->ClientID%>', 'slide', { duration: 0.2 , afterFinish: function(){
4                         $('<%=$this->OutputListing->ClientID%>').scrollTop = $('<%=$this->OutputListing->ClientID%>').scrollHeight;
5                         $('<%=$this->getPage()->VolumesTools->Tools->ClientID%>').hide();
6                         $('console_launcher').down('span').innerHTML = ($('<%=$this->ConsoleContainer->ClientID%>').getStyle('display') == 'block') ? '<%[ hide console ]%>' : '<%[ show console ]%>';
7                         window.scrollTo(0, document.body.scrollHeight);
8                 }});
9         });
10 </script>
11 <com:TActivePanel ID="ConsoleContainer" DefaultButton="Enter" Style="text-align: left; display: none;">
12         <com:TActiveTextBox ID="OutputListing" TextMode="MultiLine" CssClass="console" ReadOnly="true" />
13         <com:TActiveTextBox ID="CommandLine" TextMode="SingleLine" CssClass="textbox" Width="760px" Style="margin: 3px 5px; float: left" />
14         <com:TActiveButton ID="Enter" Text="<%[ Enter ]%>" OnCallback="sendCommand">
15                 <prop:ClientSide.OnLoading>
16                         $('<%=$this->CommandLine->ClientID%>').disabled = true;
17                 </prop:ClientSide.OnLoading>
18                 <prop:ClientSide.OnComplete>
19                         $('<%=$this->OutputListing->ClientID%>').scrollTop = $('<%=$this->OutputListing->ClientID%>').scrollHeight;
20                         $('<%=$this->CommandLine->ClientID%>').disabled = false;
21                 </prop:ClientSide.OnComplete>
22         </com:TActiveButton>
23          <com:TActiveButton ID="Clear" Text="<%[ Clear ]%>" OnCallback="clearConsole" Style="margin: auto 5px; " />
24 </com:TActivePanel>