Browse files

Merge pull request #6849 from frsela/Bug814111_Reopened

Bug 814111 - STK command to remove STK menu does not work, r=vingtetun
  • Loading branch information...
2 parents 42ac6c7 + aa52ee9 commit 669e1f328c74c4dd3c9b1eb34912ee920c87b682 @frsela frsela committed Dec 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 apps/settings/js/icc.js
  2. +1 −1 apps/settings/js/icc_menu.js
View
2 apps/settings/js/icc.js
@@ -369,7 +369,7 @@
document.getElementById('icc-stk-exit').classList.remove('hidden');
document.getElementById('icc-stk-app-back').classList.add('hidden');
- if (!menu || !menu.title) {
+ if (!menu || (menu.items.length == 1 && menu.items[0] === null)) {
debug('No STK available - hide & exit');
document.getElementById('icc-mainheader').hidden = true;
document.getElementById('icc-mainentry').hidden = true;
View
2 apps/settings/js/icc_menu.js
@@ -11,7 +11,7 @@
reqApplications.onsuccess = function icc_getApplications() {
var json = reqApplications.result['icc.applications'];
var menu = json && JSON.parse(json);
- if (!menu || !menu.title) {
+ if (!menu || (menu.items.length == 1 && menu.items[0] === null)) {
debug('No STK available - exit');
document.getElementById('icc-mainheader').hidden = true;
document.getElementById('icc-mainentry').hidden = true;

0 comments on commit 669e1f3

Please sign in to comment.