diff --git a/Cargo.toml b/Cargo.toml index 7f17d53..b18062f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alfis" -version = "0.3.2" +version = "0.3.3" authors = ["Revertron "] edition = "2018" build = "build.rs" diff --git a/img/PiSwDe.png b/img/PiSwDe.png index 14b6f8e..a794f35 100644 Binary files a/img/PiSwDe.png and b/img/PiSwDe.png differ diff --git a/src/webview/scripts.js b/src/webview/scripts.js index cd2d2df..afb40ad 100644 --- a/src/webview/scripts.js +++ b/src/webview/scripts.js @@ -16,11 +16,14 @@ function refresh_records_list() { buf = "\n"; } function getInput(text) { + if (typeof text === "string"){ + // TODO sanitize + } return ''; } function makeRecord(value, index, array) { - data = value.addr; + var data = value.addr; if (value.type == "MX") { data = value.priority + " " + value.host; } else if (value.type == "CNAME") { @@ -73,7 +76,6 @@ function get_record_from_dialog() { record_priority = parseInt(document.getElementById("record_priority").value); return { type: record_type, domain: record_name, ttl: record_ttl, priority: record_priority, host: record_data } } else if (record_type == "TXT") { - record_priority = parseInt(document.getElementById("record_priority").value); return { type: record_type, domain: record_name, ttl: record_ttl, data: record_data } } else if (record_type == "SRV") { record_priority = parseInt(document.getElementById("record_priority").value); @@ -107,6 +109,7 @@ function openTab(element, tabName) { // Show the current tab, and add an "active" class to the button that opened the tab document.getElementById(tabName).className = "content"; element.className = "is-active"; + refresh_records_list(); } function loadKey() {