Skip to content

Commit

Permalink
Fix: "Example glob patterns" button and "close" button are not access…
Browse files Browse the repository at this point in the history
…ible using keyboard (#3968)
  • Loading branch information
skofman1 authored May 16, 2017
1 parent 74cd45a commit 6a7b75c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/NuGetGallery/Views/Users/ApiKeys.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
<a href="#" class="globHelpLink">Example glob patterns</a>.
<div class="popup">
<div class="popupbox" id="addapikeypopup">
<a class="boxclose"><i class="icon-remove"></i></a>
<a href="#" class="boxclose"><i class="icon-remove"></i></a>
<div class="innertext">
A glob pattern allows you to replace any sequence of characters with '*'.
<h5>Example glob patterns</h5>
Expand Down Expand Up @@ -599,11 +599,15 @@
$('.boxclose')
.click(function () {
$(this).parent().hide();
// Prevent page jump
return false;
});
$('.globHelpLink')
.click(function () {
$(this).next().find('.popupbox').show();
// Prevent page jump
return false;
});
}
</script>
Expand Down Expand Up @@ -1163,6 +1167,7 @@
popupboxDiv.className = "popupbox editapikeypopup";
var boxclose = document.createElement("a");
boxclose.className = "boxclose";
boxclose.href = "#";
var iconRemove = document.createElement("i");
iconRemove.className = "icon-remove";
boxclose.appendChild(iconRemove);
Expand Down

0 comments on commit 6a7b75c

Please sign in to comment.