Skip to content
Snippets Groups Projects
Commit ee312992 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

choosing connection made easier, no need to hit radio button directly.

parent 9e25b835
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,22 @@ define(
var row = tbody.insertRow()
row.insertCell().appendChild(conn)
row.insertCell().textContent = connection.name
row.insertCell().textContent = connection.url
var nameCell = row.insertCell()
nameCell.textContent = connection.name
nameCell.onclick = function () {
var radio = this.parentElement.firstElementChild.firstElementChild
radio.checked = 1
state.connection.candidateName = radio.value
state.connection.candidateDTO = getConnectionByName(state.connection.candidateName);
}
var urlCell = row.insertCell()
urlCell.textContent = connection.url
urlCell.onclick = function () {
var radio = this.parentElement.firstElementChild.firstElementChild
radio.checked = 1
state.connection.candidateName = radio.value
state.connection.candidateDTO = getConnectionByName(state.connection.candidateName);
}
var status_cell = row.insertCell()
......@@ -122,8 +136,15 @@ define(
pwform.appendChild(password)
pwform.appendChild(connect_button)
var cell = row.insertCell()
cell.appendChild(pwform)
var pwCell = row.insertCell()
pwCell.appendChild(pwform)
pwCell.onclick = function () {
var radio = this.parentElement.firstElementChild.firstElementChild
radio.checked = 1
state.connection.candidateName = radio.value
state.connection.candidateDTO = getConnectionByName(state.connection.candidateName);
}
}
// add row for new connection
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment