Don't display get more results from dockerHub at all if docker isn't running

pull/2/head
Squidly271 2017-10-08 21:41:12 -04:00
parent 02160442d5
commit 9b52250bfb
3 changed files with 6 additions and 6 deletions

View File

@ -613,7 +613,9 @@ function doSearch(button) {
return;
}
var sortOrder = getSortOrder();
if ( "<?=$cfg['dockerSearch']?>" == "yes" ) {
$('.dockerSearch').show();
}
myAlert("Searching...", "Searching for <strong><font color=red>"+filter+"</font></strong>","/plugins/community.applications/images/spinner2.gif","40x40");
$.post(URL,{action:'get_content',filter:filter,sortOrder:sortOrder,windowWidth:windowWidth,maxPerPage:maxPerPage},function(data) {
@ -626,10 +628,6 @@ function doSearch(button) {
myCloseAlert();
setToolTip();
}
if ( "<?=$cfg['dockerSearch']?>" == "yes" ) {
$('.dockerSearch').show();
}
});
}

View File

@ -701,7 +701,9 @@ function my_display_apps($viewMode,$file,$pageNumber=1,$officialFlag=false,$sele
if ( ! $officialFlag ) {
$ct .= "<br>".getPageNavigation($pageNumber,count($file),false)."<br><br><br>";
}
if ( $communitySettings['dockerSearch'] != "yes" ) {
$ct .= "<script>$('.dockerSearch').hide();</script>";
}
return $ct;
}