Small fixes and update of screenshot.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "alfis"
|
name = "alfis"
|
||||||
version = "0.3.2"
|
version = "0.3.3"
|
||||||
authors = ["Revertron <alfis@revertron.com>"]
|
authors = ["Revertron <alfis@revertron.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 207 KiB |
@@ -16,11 +16,14 @@ function refresh_records_list() {
|
|||||||
buf = "<label class=\"label\">Records:</label>\n";
|
buf = "<label class=\"label\">Records:</label>\n";
|
||||||
}
|
}
|
||||||
function getInput(text) {
|
function getInput(text) {
|
||||||
|
if (typeof text === "string"){
|
||||||
|
// TODO sanitize
|
||||||
|
}
|
||||||
return '<input class="input" type="text" value="' + text + '" readonly>';
|
return '<input class="input" type="text" value="' + text + '" readonly>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeRecord(value, index, array) {
|
function makeRecord(value, index, array) {
|
||||||
data = value.addr;
|
var data = value.addr;
|
||||||
if (value.type == "MX") {
|
if (value.type == "MX") {
|
||||||
data = value.priority + " " + value.host;
|
data = value.priority + " " + value.host;
|
||||||
} else if (value.type == "CNAME") {
|
} else if (value.type == "CNAME") {
|
||||||
@@ -73,7 +76,6 @@ function get_record_from_dialog() {
|
|||||||
record_priority = parseInt(document.getElementById("record_priority").value);
|
record_priority = parseInt(document.getElementById("record_priority").value);
|
||||||
return { type: record_type, domain: record_name, ttl: record_ttl, priority: record_priority, host: record_data }
|
return { type: record_type, domain: record_name, ttl: record_ttl, priority: record_priority, host: record_data }
|
||||||
} else if (record_type == "TXT") {
|
} 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 }
|
return { type: record_type, domain: record_name, ttl: record_ttl, data: record_data }
|
||||||
} else if (record_type == "SRV") {
|
} else if (record_type == "SRV") {
|
||||||
record_priority = parseInt(document.getElementById("record_priority").value);
|
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
|
// Show the current tab, and add an "active" class to the button that opened the tab
|
||||||
document.getElementById(tabName).className = "content";
|
document.getElementById(tabName).className = "content";
|
||||||
element.className = "is-active";
|
element.className = "is-active";
|
||||||
|
refresh_records_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadKey() {
|
function loadKey() {
|
||||||
|
|||||||
Reference in New Issue
Block a user