diff --git a/modules/data/send_raw/files/select.js b/modules/data/send_raw/files/select.js new file mode 100644 index 00000000..97402fb5 --- /dev/null +++ b/modules/data/send_raw/files/select.js @@ -0,0 +1,11 @@ +function updateUser() { + var select = document.getElementById('selectnetwork'); + var opt = select.options[select.selectedIndex]; + document.getElementById('user').value = opt.parentNode.getAttribute('label'); +} + +function init() { + updateUser(); + document.getElementById('networklabel').firstChild.nodeValue = 'Network:'; + document.getElementById('userblock').removeAttribute('style'); +} diff --git a/modules/data/send_raw/tmpl/index.tmpl b/modules/data/send_raw/tmpl/index.tmpl index b33e18f1..38b7c596 100644 --- a/modules/data/send_raw/tmpl/index.tmpl +++ b/modules/data/send_raw/tmpl/index.tmpl @@ -1,3 +1,4 @@ + ADDROW JSLoop HREF=/modfiles/user/send_raw/select.js ?> INC Header.tmpl ?>