Skip to content

Commit

Permalink
Add AA to _applicationsCtxtWiseAppNames for v59+
Browse files Browse the repository at this point in the history
In v59 there is an additional array that is checked when populating the app list.  Before this was solved by patching systemApp.js but this solves the issue without the need for a patch.
  • Loading branch information
Trevelopment committed Dec 30, 2017
1 parent e78b736 commit 1fd944b
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -27,7 +27,10 @@ function addAdditionalApps() {
systemApp._masterApplicationDataList.items.push({ appData : { appName : additionalApp.name, isVisible : true, mmuiEvent : 'Select'+additionalApp.name }, text1Id : additionalApp.name, disabled : false, itemStyle : 'style01', hasCaret : false }); systemApp._masterApplicationDataList.items.push({ appData : { appName : additionalApp.name, isVisible : true, mmuiEvent : 'Select'+additionalApp.name }, text1Id : additionalApp.name, disabled : false, itemStyle : 'style01', hasCaret : false });
framework.localize._appDicts[systemAppId][additionalApp.name] = additionalApp.label; framework.localize._appDicts[systemAppId][additionalApp.name] = additionalApp.label;
framework.common._contextCategory._contextCategoryTable[additionalApp.name+'.*'] = category; framework.common._contextCategory._contextCategoryTable[additionalApp.name+'.*'] = category;
if (additionalApp.preload != null) { if(typeof systemApp._applicationsCtxtWiseAppNames !== "undefined" && systemApp._applicationsCtxtWiseAppNames.Applications.indexOf(additionalApp.name) === -1) {
systemApp._applicationsCtxtWiseAppNames.Applications.push(additionalApp.name);
}
if (additionalApp.preload !== undefined) {
var preloadPath = "apps/" + additionalApp.name + "/js/" + additionalApp.preload; var preloadPath = "apps/" + additionalApp.name + "/js/" + additionalApp.preload;
utility.loadScript(preloadPath); utility.loadScript(preloadPath);
} }
Expand Down

0 comments on commit 1fd944b

Please sign in to comment.