Cleaning in ssh logs and progress appearance
This commit is contained in:
parent
e4905c9769
commit
0c149683ff
3 changed files with 15 additions and 7 deletions
|
|
@ -20,6 +20,14 @@
|
|||
display: none;
|
||||
|
||||
}
|
||||
|
||||
#no_progress pre {
|
||||
|
||||
margin-top:2px;
|
||||
margin-bottom:2px;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
</%block>
|
||||
<%block name="content">
|
||||
|
|
@ -30,7 +38,7 @@ ${return_tree|n}
|
|||
<hr />
|
||||
<i class="fa fa-cog fa-spin fa-5x fa-fw margin-bottom" id="gear"></i>
|
||||
<div id="progressbar"><div class="progress-label">${lang('pastafari2', 'processing_task', 'Processing task...')}</div></div>
|
||||
<div id="no_progress" style="border: solid #cbcbcb 1px;height:150px;overflow:scroll;padding:2px;"></div>
|
||||
<div id="no_progress" style="border: solid #cbcbcb 1px;height:550px;overflow:scroll;padding:2px;color: #fbfbfb;background:#000000 !important;font-size:0.8em;"></div>
|
||||
<p id="return_block"></p>
|
||||
</%block>
|
||||
<%block name="jscript_block">
|
||||
|
|
@ -100,7 +108,7 @@ ${return_tree|n}
|
|||
|
||||
progressbar.progressbar( "value", progress );
|
||||
|
||||
$('#no_progress').append(message+'<br />');
|
||||
$('#no_progress').append(message);
|
||||
|
||||
objDiv.scrollTop = objDiv.scrollHeight;
|
||||
|
||||
|
|
@ -143,7 +151,7 @@ ${return_tree|n}
|
|||
{
|
||||
//yes_progress=0;
|
||||
//$('#no_progress').append(data[k].message+'<br />');
|
||||
update_messages_queue(data[k].message+'<br />');
|
||||
update_messages_queue('<pre>'+data[k].message.trim()+'</pre>');
|
||||
|
||||
//Scroll
|
||||
|
||||
|
|
@ -152,7 +160,7 @@ ${return_tree|n}
|
|||
if(data[k].no_progress==0)
|
||||
{
|
||||
|
||||
update_progress_messages_queue(data[k].message, data[k].progress);
|
||||
update_progress_messages_queue('<pre>'+data[k].message.trim()+'</pre>', data[k].progress);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue