Made the global settings icon accessable via keyboard.

Bug http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-561
remotes/origin/stable4
Thomas Tanghus 14 years ago
parent 8d1754041e
commit 27da29525a
  1. 5
      core/js/js.js
  2. 2
      core/templates/layout.user.php

@ -419,6 +419,11 @@ $(document).ready(function(){
}
});
$('#settings #expand').keydown(function(event) {
if (event.which == 13 || event.which == 32) {
$('#expand').click()
}
});
$('#settings #expand').click(function(event) {
$('#settings #expanddiv').slideToggle();
event.stopPropagation();

@ -44,7 +44,7 @@
</ul>
<ul id="settings" class="svg">
<img id="expand" class="svg" alt="<?php echo $l->t('Settings');?>" src="<?php echo image_path('', 'actions/settings.svg'); ?>" />
<img role=button tabindex=0 id="expand" class="svg" alt="<?php echo $l->t('Settings');?>" src="<?php echo image_path('', 'actions/settings.svg'); ?>" />
<span><?php echo $l->t('Settings');?></span>
<div id="expanddiv" <?php if($_['bodyid'] == 'body-user') echo 'style="display:none;"'; ?>>
<?php foreach($_['settingsnavigation'] as $entry):?>

Loading…
Cancel
Save