aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-08-08 17:46:45 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2013-09-25 22:35:57 -0400
commit6fad22b9a52b80b62f25d0e6b339e1e2ec368576 (patch)
tree7d8fa27bbac86ca3131e81baa388b0a7cdcedf2e
parent35fbe24dedac8e5183e063d0eb24f15165b42960 (diff)
downloadpfsense-packages-6fad22b9a52b80b62f25d0e6b339e1e2ec368576.tar.gz
pfsense-packages-6fad22b9a52b80b62f25d0e6b339e1e2ec368576.tar.bz2
pfsense-packages-6fad22b9a52b80b62f25d0e6b339e1e2ec368576.zip
Add back JavaScript function inadvertently deleted.
-rwxr-xr-xconfig/snort/snort_preprocessors.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/snort/snort_preprocessors.php b/config/snort/snort_preprocessors.php
index 3f88efaa..b4f5e4c1 100755
--- a/config/snort/snort_preprocessors.php
+++ b/config/snort/snort_preprocessors.php
@@ -1445,6 +1445,21 @@ function enable_change_all() {
document.iform.stream5_icmp_timeout.disabled=endis;
}
+function wopen(url, name, w, h)
+{
+// Fudge factors for window decoration space.
+// In my tests these work well on all platforms & browsers.
+ w += 32;
+ h += 96;
+ var win = window.open(url,
+ name,
+ 'width=' + w + ', height=' + h + ', ' +
+ 'location=no, menubar=no, ' +
+ 'status=no, toolbar=no, scrollbars=yes, resizable=yes');
+ win.resizeTo(w, h);
+ win.focus();
+}
+
// Set initial state of form controls
enable_change_all();