aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_interfaces_edit.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2011-07-22 11:43:29 -0700
committerrobiscool <robrob2626@yahoo.com>2011-07-22 11:43:29 -0700
commite042d18d244832f0c6fa3ce44c175346eb5bef6b (patch)
tree5380ff77629c8d6a8a486c57e23d8ce5aa43971c /config/snort-dev/snort_interfaces_edit.php
parent34f159bb62fed61fefef59cd89c1a492545c8929 (diff)
downloadpfsense-packages-e042d18d244832f0c6fa3ce44c175346eb5bef6b.tar.gz
pfsense-packages-e042d18d244832f0c6fa3ce44c175346eb5bef6b.tar.bz2
pfsense-packages-e042d18d244832f0c6fa3ce44c175346eb5bef6b.zip
snort-dev, jQuery update call backs, update rule db tab
Diffstat (limited to 'config/snort-dev/snort_interfaces_edit.php')
-rw-r--r--config/snort-dev/snort_interfaces_edit.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/snort-dev/snort_interfaces_edit.php b/config/snort-dev/snort_interfaces_edit.php
index a501aa34..7d710fe5 100644
--- a/config/snort-dev/snort_interfaces_edit.php
+++ b/config/snort-dev/snort_interfaces_edit.php
@@ -90,6 +90,12 @@ if (!is_array($a_suppresslist)) {
// start a jQuery sand box
jQuery(document).ready(function() {
+ // misc call after a good save
+ jQuery.fn.miscTabCall = function () {
+ jQuery('.hide_newtabmenu').show();
+ jQuery('#interface').attr("disabled", true);
+ };
+
// START disable option for snort_interfaces_edit.php
endis = !(jQuery('input[name=enable]:checked').val());
@@ -229,7 +235,7 @@ jQuery(document).ready(function() {
<tr>
<td width="22%" valign="top" class="vncellreq2">Interface</td>
<td width="78%" class="vtable">
- <select name="interface" class="formfld">
+ <select id="interface" name="interface" class="formfld">
<?php
/* add group interfaces */
@@ -316,7 +322,7 @@ jQuery(document).ready(function() {
foreach ($a_rules as $value)
{
$selected = '';
- if ($value['uuid'] == $a_list['ruledbname'] && $value['enable'] !== 'off') {
+ if ($value['uuid'] == $a_list['ruledbname']) {
$selected = 'selected';
}