Skip to content

Commit

Permalink
Bug 824880 - Disable multi-level context menu, r=vivien,
Browse files Browse the repository at this point in the history
    a=blocking-basecamp
  • Loading branch information
alivedise committed Dec 27, 2012
1 parent 99e3e0f commit e105aa4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions apps/system/js/list_menu.js
Expand Up @@ -60,14 +60,10 @@ var ListMenu = {
var button = document.createElement('a');
button.setAttribute('role', 'button');
if (item.type && item.type == 'menu') {
this.currentLevel += 1;
this.currentParent = containerDiv.id;
this.buildMenu(item.items);
this.currentLevel -= 1;
item_div.classList.add('submenu');

button.href = '#' + this.currentChild;
button.textContent = item.label;
// XXX: We disallow multi-level menu at this moment
// See https://bugzilla.mozilla.org/show_bug.cgi?id=824928
// for UX design and dev implementation tracking
return;
} else if (item.type && item.type == 'menuitem') {
button.dataset.value = item.id;
button.textContent = item.label;
Expand Down

0 comments on commit e105aa4

Please sign in to comment.