Don't display get more results from dockerHub at all if docker isn't running
parent
02160442d5
commit
9b52250bfb
Binary file not shown.
|
@ -613,7 +613,9 @@ function doSearch(button) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var sortOrder = getSortOrder();
|
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");
|
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) {
|
$.post(URL,{action:'get_content',filter:filter,sortOrder:sortOrder,windowWidth:windowWidth,maxPerPage:maxPerPage},function(data) {
|
||||||
|
@ -626,10 +628,6 @@ function doSearch(button) {
|
||||||
myCloseAlert();
|
myCloseAlert();
|
||||||
setToolTip();
|
setToolTip();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( "<?=$cfg['dockerSearch']?>" == "yes" ) {
|
|
||||||
$('.dockerSearch').show();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -701,7 +701,9 @@ function my_display_apps($viewMode,$file,$pageNumber=1,$officialFlag=false,$sele
|
||||||
if ( ! $officialFlag ) {
|
if ( ! $officialFlag ) {
|
||||||
$ct .= "<br>".getPageNavigation($pageNumber,count($file),false)."<br><br><br>";
|
$ct .= "<br>".getPageNavigation($pageNumber,count($file),false)."<br><br><br>";
|
||||||
}
|
}
|
||||||
|
if ( $communitySettings['dockerSearch'] != "yes" ) {
|
||||||
|
$ct .= "<script>$('.dockerSearch').hide();</script>";
|
||||||
|
}
|
||||||
return $ct;
|
return $ct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue