|
|
|
@ -48,6 +48,13 @@ module.exports = function(menuItemFactory, $state, $stateParams, $animate, $time |
|
|
|
|
// No idea though, why these sometimes are null and sometimes are undefined.
|
|
|
|
|
element.toggleClass('selected', $state.includes('work-packages') && |
|
|
|
|
(scope.queryId == $stateParams.query_id)); |
|
|
|
|
|
|
|
|
|
// Add hidden info for blind users
|
|
|
|
|
element.prop('title', I18n.t('js.description_current_position') + element.prop('title')); |
|
|
|
|
var hiddenLabel = document.createElement('span'); |
|
|
|
|
hiddenLabel.addClassName('hidden-for-sighted'); |
|
|
|
|
hiddenLabel.innerHTML = I18n.t('js.description_current_position'); |
|
|
|
|
element[0].insertBefore(hiddenLabel, element[0].firstChild); |
|
|
|
|
} |
|
|
|
|
scope.$on('openproject.layout.activateMenuItem', setActiveState); |
|
|
|
|
|
|
|
|
|