possible for actionsContext to be null???

This commit is contained in:
Squidly271 2022-09-30 05:02:01 -04:00
parent 33e8b14351
commit e8df85e08f
4 changed files with 27 additions and 19 deletions

Binary file not shown.

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 "2022.09.26"> <!ENTITY version "2022.09.30">
<!ENTITY md5 "68f16951889161a237cdfeb3155f3a42"> <!ENTITY md5 "4d41b2b779ca48aa75c390fedacc09e1">
<!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">
@ -13,6 +13,9 @@
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.9.0" support="https://lime-technology.com/forums/topic/38582-plug-in-community-applications/" icon="users"> <PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.9.0" support="https://lime-technology.com/forums/topic/38582-plug-in-community-applications/" icon="users">
<CHANGES> <CHANGES>
###2022.09.30
- Possible fix for a javascript error in certain unlikely situations
###2022.09.26 ###2022.09.26
- Performance improvement: Only scan for new private templates when going Home - Performance improvement: Only scan for new private templates when going Home
- Fixed: Flash drive offline would crash CA - Fixed: Flash drive offline would crash CA

View File

@ -1972,15 +1972,19 @@ function updateDisplay(content) {
context.init(); context.init();
$('.supportButtonCardContext').each(function() { $('.supportButtonCardContext').each(function() {
var supportContext = $(this).data("context"); var supportContext = $(this).data("context");
if (supportContext) {
var ID = $(this).attr("id"); var ID = $(this).attr("id");
var opts = []; var opts = [];
supportContext.forEach(function(item,index){ supportContext.forEach(function(item,index){
opts.push({text:item.text,icon:item.icon,action:function(){openNewWindow(item.link,'_blank');}}); opts.push({text:item.text,icon:item.icon,action:function(){openNewWindow(item.link,'_blank');}});
}); });
context.attach('#'+ID, opts); context.attach('#'+ID, opts);
}
}); });
$('.actionsButtonContext').each(function() { $('.actionsButtonContext').each(function() {
var actionsContext = $(this).data("context"); var actionsContext = $(this).data("context");
if (actionsContext) {
var ID = $(this).attr("id"); var ID = $(this).attr("id");
var opts = []; var opts = [];
actionsContext.forEach(function(item,index){ actionsContext.forEach(function(item,index){
@ -1991,6 +1995,7 @@ function updateDisplay(content) {
} }
}); });
context.attach('#'+ID, opts); context.attach('#'+ID, opts);
}
}); });
$(".cardDesc").each(function() { $(".cardDesc").each(function() {
var description = $(this).html(); var description = $(this).html();

View File

@ -1,4 +1,4 @@
9a5ce7938223bd1abce7660d8ee9e7cf ./Apps.page 73795c70b2b193fd25115d77259d152d ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page 4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page 42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg e718d7825dbdc96a17a915079222b098 ./default.cfg