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);
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="815px" 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>
23 <com:TActiveButton ID="Clear" Text="Clear" OnCallback="clearConsole" Style="margin: auto 5px; " />