Host grid accessible

This commit is contained in:
Paulin Jorys 2017-05-21 18:35:10 +02:00
parent 9cd90d5a8d
commit 8689032369
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@
<div id="host-grid"> <div id="host-grid">
<div class="page-title">Your PCs</div> <div class="page-title">Your PCs</div>
<div class="add-host-card mdl-card mdl-shadow--4dp" id='addHostCell'> <div class="add-host-card mdl-card mdl-shadow--4dp" id='addHostCell'>
<div class="mdl-card__title mdl-card--expand" id="addHostIcon"> <div class="mdl-card__title mdl-card--expand" id="addHostIcon" role="link" tabindex="0" aria-label="Add Host">
<h2 class="mdl-card__title-text" >Add Host</h2> <h2 class="mdl-card__title-text" >Add Host</h2>
</div> </div>
</div> </div>

View File

@ -336,10 +336,10 @@ function addHost() {
// host is an NvHTTP object // host is an NvHTTP object
function addHostToGrid(host, ismDNSDiscovered) { function addHostToGrid(host, ismDNSDiscovered) {
var outerDiv = $("<div>", {class: 'host-container mdl-card mdl-shadow--4dp', id: 'host-container-' + host.serverUid }); var outerDiv = $("<div>", {class: 'host-container mdl-card mdl-shadow--4dp', id: 'host-container-' + host.serverUid, role: 'link', tabindex: 0, 'aria-label': host.hostname });
var cell = $("<div>", {class: 'mdl-card__title mdl-card--expand', id: 'hostgrid-' + host.serverUid }); var cell = $("<div>", {class: 'mdl-card__title mdl-card--expand', id: 'hostgrid-' + host.serverUid });
$(cell).prepend($("<h2>", {class: "mdl-card__title-text", html: host.hostname})); $(cell).prepend($("<h2>", {class: "mdl-card__title-text", html: host.hostname}));
var removalButton = $("<div>", {class: "remove-host", id: "removeHostButton-" + host.serverUid}); var removalButton = $("<div>", {class: "remove-host", id: "removeHostButton-" + host.serverUid, role: 'button', tabindex: 0, 'aria-label': 'Remove host ' + host.hostname});
removalButton.off('click'); removalButton.off('click');
removalButton.click(function () { removalButton.click(function () {
removeClicked(host); removeClicked(host);