Don't allow clicks on disabled categories

This commit is contained in:
Squidly271 2021-05-16 13:15:27 -04:00
parent c19f40870e
commit d69a287862
4 changed files with 6 additions and 3 deletions

View File

@ -2,8 +2,8 @@
<!DOCTYPE PLUGIN [ <!DOCTYPE PLUGIN [
<!ENTITY name "community.applications"> <!ENTITY name "community.applications">
<!ENTITY author "Andrew Zawadzki"> <!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2021.05.16"> <!ENTITY version "2021.05.16a">
<!ENTITY md5 "59597c97598812a51b1843f81f4b2576"> <!ENTITY md5 "6fecb28c57b030e0a2d51a005ca8f38f">
<!ENTITY launch "Apps"> <!ENTITY launch "Apps">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;"> <!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/community.applications"> <!ENTITY github "Squidly271/community.applications">
@ -14,6 +14,7 @@
<CHANGES> <CHANGES>
###2021.05.16 ###2021.05.16
- Fixed: Regression error when searching it allowed clicking on categories which weren't present on the search
- Added more debugging information - Added more debugging information
- Fixed: Docker apps with branding wouldn't show as installed during searches, or browsing (only via Installed Apps) - Fixed: Docker apps with branding wouldn't show as installed during searches, or browsing (only via Installed Apps)
- Removed: Support for BaseOS within templates (no one used it, and dockerHub hasn't supported returning this information for ~2 years) - Removed: Support for BaseOS within templates (no one used it, and dockerHub hasn't supported returning this information for ~2 years)

View File

@ -292,6 +292,8 @@ $(function(){
$('.menuItems').on("click",'.categoryMenu',function() { $('.menuItems').on("click",'.categoryMenu',function() {
if ( popupVisible(this) ) return; if ( popupVisible(this) ) return;
if ( $(this).hasClass("caMenuDisabled") )
return;
if ( $(this).hasClass("selectedMenu") ) { if ( $(this).hasClass("selectedMenu") ) {
if ( $(this).hasClass("caRepositoryMenu") ) { if ( $(this).hasClass("caRepositoryMenu") ) {
return; return;

View File

@ -1,6 +1,6 @@
767d6f2203fed9541daeb57bbf7b58b3 ./Apps.page 767d6f2203fed9541daeb57bbf7b58b3 ./Apps.page
83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page 83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page
e3b4d03ace58346313f1c852b44dcdfd ./CommunityApps.page 087ed601fb7f3f11ff3b9b57fabf88e0 ./CommunityApps.page
6db73582f22dab13d329e862067ee84e ./PluginAPI.page 6db73582f22dab13d329e862067ee84e ./PluginAPI.page
b398273cf7daa62ab00d2de2336ca25f ./README.md b398273cf7daa62ab00d2de2336ca25f ./README.md
1a908064914041c48be7bf0dab77515a ./ca_settings.page 1a908064914041c48be7bf0dab77515a ./ca_settings.page