Skip to content
Snippets Groups Projects
Commit 4da83d6c authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

added show count of servers, set ajax timout

parent e7a4890e
Branches
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@
/cronjobs.html
/winscp.rnd
config/inc_cronlog.php
/data__/
\ No newline at end of file
......@@ -498,19 +498,22 @@ class cronlogrenderer extends cronlog{
*/
public function renderServerlist($sSelectedItem=false){
$sHtml='';
$iMaxItemsToShow=30;
$sHtml.='<option value="ALL"'
.($sSelectedItem===false || $sSelectedItem==='ALL' ? ' selected="selected"' : '')
. '>[ALLE]</option>';
. '>[ALLE ('.count($this->getServers()).')]</option>';
foreach($this->getServers() as $sServer=>$aData){
$sHtml.='<option value="'.$sServer.'"'
.($sSelectedItem===$sServer ? ' selected="selected"' : '')
.'>'.$sServer.'</option>';
}
$sHtml=$sHtml ? '<select'
. ' size="'.(count($this->getServers())+1).'"'
$sHtml=$sHtml
? '<select'
. ' size="'.( min(array(count($this->getServers())+1 , $iMaxItemsToShow)) ).'"'
// . ' size="1"'
. ' onchange="setServer(this.value); return false;"'
. '>'.$sHtml.'</select>' : false;
. '>'.$sHtml.'</select>'
: false;
return $sHtml;
}
......
......@@ -134,6 +134,7 @@ var asimax = function () {
url: url,
data: queryparams,
type: this.cfg.apimethod,
timeout: 5000, // [ms]
success: function (data) {
$('#' + domid).css('opacity', 1);
$('#' + domid).html(data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment