Changed javascript code to jquery code and fixed style

This commit is contained in:
m-lopez-f 2015-04-15 12:13:47 +02:00
parent b78f39f420
commit 012393d164

View File

@ -101,12 +101,12 @@ function main_net_tools () {
function mostrarColumns(ValueSelect){ function mostrarColumns(ValueSelect){
value = ValueSelect.value; value = ValueSelect.value;
if ( value==3 ) { if ( value==3 ) {
document.getElementById('netToolTable').width='100%'; $('netToolTable').css('width','100%');
document.getElementById('snmpcolumn').style.display='block'; $('#snmpcolumn').show();
} }
else{ else{
document.getElementById('netToolTable').width='100%'; $('netToolTable').css('width','100%');
document.getElementById('snmpcolumn').style.display='none'; $('#snmpcolumn').hide();
} }
} }
</script>"; </script>";
@ -143,7 +143,7 @@ function main_net_tools () {
echo __("SNMP Community") . "&nbsp;"; echo __("SNMP Community") . "&nbsp;";
echo "<input name=community type=text value='public'>"; echo "<input name=community type=text value='public'>";
echo "</td><td>"; echo "</td><td>";
echo "<input name=submit type=submit class='sub next' value='".__('Execute')."'>"; echo "<input style='margin:0px;' name=submit type=submit class='sub next' value='".__('Execute')."'>";
echo "</td>"; echo "</td>";
echo "</tr></table>"; echo "</tr></table>";
echo "</form>"; echo "</form>";