bug fix my previous commit for RT7794
authorlevinse <levinse>
Sun, 23 Jan 2011 00:49:12 +0000 (00:49 +0000)
committerlevinse <levinse>
Sun, 23 Jan 2011 00:49:12 +0000 (00:49 +0000)
httemplate/edit/phone_device.html
httemplate/edit/process/phone_device.html
httemplate/elements/select-mac.html

index c42e714..4aec63e 100644 (file)
@@ -95,6 +95,8 @@ $js .= "\");
        }
 
     }
+
+    devicepart_changed(document.getElementById('devicepart'));
 </SCRIPT>";
 
   $js;
index df9d5e7..689a65e 100644 (file)
 %>
 <%init>
 
+if($cgi->param('sel_mac_addr') && !$cgi->param('mac_addr')) {
+    $cgi->param('mac_addr',$cgi->param('sel_mac_addr'));
+}
+
 # :/  needs agent-virt so you can't futz with arbitrary devices
 
 die "access denied"
index 3153ca7..8b1c71f 100644 (file)
@@ -6,7 +6,7 @@
 
 <% include( '/elements/input-text.html', %opt, 'type'=>'text' ) %>
 
-<SELECT ID="<% $opt{'prefix'} %>sel_mac_addr" NAME="<% $opt{'prefix'} %>mac_addr" 
+<SELECT ID="<% $opt{'prefix'} %>sel_mac_addr" NAME="<% $opt{'prefix'} %>sel_mac_addr" 
     notonChange="<% $opt{'prefix'} %>mac_addr_changed(this); <% $opt{'onchange'} %>"
     <% $opt{'disabled'} %> STYLE="display: none">
   <OPTION VALUE="">Select MAC address</OPTION>