mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Remove unnecessary var and update function name.
This commit is contained in:
parent
df1d2f28d8
commit
9b385d91a8
1 changed files with 2 additions and 3 deletions
|
@ -95,8 +95,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
function choose(choice) {
|
||||
var url = choice;
|
||||
function navigateTo(url) {
|
||||
var readyEvent = {
|
||||
"action": "goToUrl",
|
||||
"visit": url,
|
||||
|
@ -158,7 +157,7 @@
|
|||
for (var j = 0; j < col.length; j++) {
|
||||
var tabCell = tr.insertCell(-1);
|
||||
if (j == 2) {
|
||||
var url = "<input id=\"Button\" class=\"myButton\" type=\"button\" onclick=\"choose('" + myAddress[i][col[j]] + "')\" value=\"Visit\" />";
|
||||
var url = "<input id=\"Button\" class=\"myButton\" type=\"button\" onclick=\"navigateTo('" + myAddress[i][col[j]] + "')\" value=\"Visit\" />";
|
||||
tabCell.innerHTML = url;
|
||||
} else {
|
||||
tabCell.innerHTML = myAddress[i][col[j]];
|
||||
|
|
Loading…
Reference in a new issue