From 13ea0a8fcc2b8a12b410372d7861fa2f5d825801 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 18 Dec 2007 10:23:24 -0500 Subject: Apply Tim's patch to fix/re-enable the random MAC feature. --- webui_templates/system_edit.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'webui_templates') diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl index fa37244..e785e05 100644 --- a/webui_templates/system_edit.tmpl +++ b/webui_templates/system_edit.tmpl @@ -29,7 +29,7 @@ function disablename(value) } } #else -function get_random_mac() +function get_random_mac(field) { xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", "$base_url?mode=random_mac", true); @@ -38,7 +38,7 @@ function get_random_mac() var mac_field = document.getElementById("macaddress") var result = xmlHttp.responseText; if (result.charAt(2) == ':' && result.charAt(5) == ':') { - mac_field.value = result; + document.getElementById(field).value = result; } } }; @@ -277,9 +277,7 @@ function page_onload() { value="$macaddress" /> - ## #if not $system - ## random - ## #end if + Random MAC

Example: AA:BB:CC:DD:EE:FF

-- cgit