diff --git a/src/tab.js b/src/tab.js index 5b967f123b..b2ea3a0042 100644 --- a/src/tab.js +++ b/src/tab.js @@ -399,7 +399,8 @@ 'aria-expanded': false, 'aria-haspopup': true, 'title': menu_action[2], - 'id': menu_action[0] + 'id': menu_action[0], + 'disabled': !toolbars[menu_action[0]].length }) .append(jQuery('', { 'class': 'glyphicon ' + menu_action[1],