Révision d7582888
Ajouté par Renato Botelho il y a presque 10 ans
usr/local/www/firewall_nat_out_edit.php | ||
---|---|---|
413 | 413 |
} |
414 | 414 |
} |
415 | 415 |
function poolopts_change() { |
416 |
if (jQuery('#target option:selected').text().substring(0,4) == "Host") { |
|
416 |
if (jQuery('#target option:selected').text().trim().substring(0,4) == "Host") {
|
|
417 | 417 |
jQuery('#poolopts_tr').css('display',''); |
418 | 418 |
jQuery('#target_network').css('display','none'); |
419 |
} else if (jQuery('#target option:selected').text().substring(0,6) == "Subnet") { |
|
419 |
} else if (jQuery('#target option:selected').text().trim().substring(0,6) == "Subnet") {
|
|
420 | 420 |
jQuery('#poolopts_tr').css('display',''); |
421 | 421 |
jQuery('#target_network').css('display','none'); |
422 |
} else if (jQuery('#target option:selected').text().substring(0,5) == "Other") { |
|
422 |
} else if (jQuery('#target option:selected').text().trim().substring(0,5) == "Other") {
|
|
423 | 423 |
jQuery('#poolopts_tr').css('display',''); |
424 | 424 |
jQuery('#target_network').css('display',''); |
425 | 425 |
} else { |
Formats disponibles : Unified diff
Trim whitespaces from options text and fix #3674