Remove CA modules

No real fundamental reason for it to be there.  No fair either to place
my plugins over and above others
pull/2/head
Squidly271 2017-10-24 17:00:24 -04:00
parent 59009af2f2
commit 5b7c3b3a46
3 changed files with 0 additions and 48 deletions

Binary file not shown.

View File

@ -510,29 +510,6 @@ function changeCategory(button,subSwitch) {
getContent(false,category,description,newFlag);
}
function caModules() {
myAlert("","Searching");
data_docker = "";
$(".appButtons").prop("disabled",false);
$("#CAmodules").prop("disabled",true);
data_section = "CAmodules";
$("#currentSection").html("Additional CA Modules");
clearSearchBox();
$("#templates_content,.dockerSearch,#AppsOnly,.multi_installDiv").hide();
$("#templates_content").html("<center><font size='3'>Searching</font></center>");
$("#templates_content,#sortButtons,#Total1,#templateSortButtons").show();
enableIcon("#sortIcon",true);
enableIcon("#subcategoryIcon, #categoryIcon",false);
$("#Category").html("All Community Application Modules");
resetSortByDate();
$.post(URL,{action:'populateModules'},function(data) {
if (data) {
changeSortOrder(null,null,null);
myCloseAlert();
}
});
}
function changePage(pageNumber) {
var sortOrder = getSortOrder();
var windowWidth = getWindowWidth();
@ -1470,7 +1447,6 @@ Sort Direction:
<input type='button' class='appButtons' id='InstalledApps' value='Installed Apps' onclick='previousApps(this.id,true);'></input>
<input type='button' class='appButtons' id='OldApps' value='Previous Apps' onclick='previousApps(this.id,false);'></input>
<input type='button' class='appButtons' id='PinnedApps' value='Pinned Apps' onclick='pinnedApps(this.id);'></input>
<input type='button' class='appButtons' id='CAmodules' value='CA Modules' onclick='caModules();'>
</span>
<div style='display:none;'>
<span id='MainCategory'>

View File

@ -1852,30 +1852,6 @@ case 'displayTags':
}
break;
################################################
# #
# Specialized search for additional CA Modules #
# #
################################################
case 'populateModules':
$file = readJsonFile($communityPaths['community-templates-info']);
foreach ($file as $template) {
if ($template['CA']) {
if ( ! $template['Compatible'] ) {
continue;
}
$filename = basename($template['PluginURL']);
if ( is_file("/var/log/plugins/$filename") ) {
$template['MyPath'] = "/var/log/plugins/$filename";
$template['Uninstall'] = true;
}
$displayed['community'][] = $template;
}
}
writeJsonFile($communityPaths['community-templates-displayed'],$displayed);
echo "done";
break;
###########################################
# #
# Displays The Statistics For The Appfeed #