diff --git a/archive/community.applications-2022.09.30-x86_64-1.txz b/archive/community.applications-2022.09.30-x86_64-1.txz new file mode 100644 index 00000000..37aed9dd Binary files /dev/null and b/archive/community.applications-2022.09.30-x86_64-1.txz differ diff --git a/plugins/community.applications.plg b/plugins/community.applications.plg index 16838c1a..801ad6de 100644 --- a/plugins/community.applications.plg +++ b/plugins/community.applications.plg @@ -2,8 +2,8 @@ - - + + @@ -13,6 +13,9 @@ +###2022.09.30 +- Possible fix for a javascript error in certain unlikely situations + ###2022.09.26 - Performance improvement: Only scan for new private templates when going Home - Fixed: Flash drive offline would crash CA diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/Apps.page b/source/community.applications/usr/local/emhttp/plugins/community.applications/Apps.page index 483aca34..3e5a60bd 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/Apps.page +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/Apps.page @@ -1972,25 +1972,30 @@ function updateDisplay(content) { context.init(); $('.supportButtonCardContext').each(function() { var supportContext = $(this).data("context"); - var ID = $(this).attr("id"); - var opts = []; - supportContext.forEach(function(item,index){ - opts.push({text:item.text,icon:item.icon,action:function(){openNewWindow(item.link,'_blank');}}); - }); - context.attach('#'+ID, opts); + if (supportContext) { + var ID = $(this).attr("id"); + var opts = []; + supportContext.forEach(function(item,index){ + opts.push({text:item.text,icon:item.icon,action:function(){openNewWindow(item.link,'_blank');}}); + }); + context.attach('#'+ID, opts); + } }); + $('.actionsButtonContext').each(function() { var actionsContext = $(this).data("context"); - var ID = $(this).attr("id"); - var opts = []; - actionsContext.forEach(function(item,index){ - if ( item.divider ) { - opts.push({divider:true}); - } else { - opts.push({text:item.text,icon:item.icon,action:function(){eval(item.action);}}); - } - }); - context.attach('#'+ID, opts); + if (actionsContext) { + var ID = $(this).attr("id"); + var opts = []; + actionsContext.forEach(function(item,index){ + if ( item.divider ) { + opts.push({divider:true}); + } else { + opts.push({text:item.text,icon:item.icon,action:function(){eval(item.action);}}); + } + }); + context.attach('#'+ID, opts); + } }); $(".cardDesc").each(function() { var description = $(this).html(); diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 b/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 index 1a0e1805..ca125f87 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 @@ -1,4 +1,4 @@ -9a5ce7938223bd1abce7660d8ee9e7cf ./Apps.page +73795c70b2b193fd25115d77259d152d ./Apps.page 4e55f7483b661af21a25b677179baffe ./CA_notices.page 42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page e718d7825dbdc96a17a915079222b098 ./default.cfg