summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-10 09:11:47 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-10 09:12:08 -0500
commitac5e11a7d83fdabdea292d097b5913205c61b778 (patch)
tree744791595db394ab36eac59e93a0cedc71e4fb65 /src/usr
parent5f6c371293db76776600a40c940c9a14d4054642 (diff)
downloadpfsense-ac5e11a7d83fdabdea292d097b5913205c61b778.zip
pfsense-ac5e11a7d83fdabdea292d097b5913205c61b778.tar.gz
Revise setHelpText to accommodate required fields
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php5
-rw-r--r--src/usr/local/www/js/pfSenseHelpers.js5
-rw-r--r--src/usr/local/www/system_advanced_firewall.php4
3 files changed, 5 insertions, 9 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 43c60fd..3656b21 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -2082,11 +2082,6 @@ events.push(function() {
}
});
- // Change help text based on the selector value
- function setHelpText(id, text) {
- $('#' + id).parent().parent('div').find('span').find('span').html(text);
- }
-
function setOptText(target, val) {
var dispstr = '<span class="text-success">';
diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js
index 341c3bb..5d9a51a 100644
--- a/src/usr/local/www/js/pfSenseHelpers.js
+++ b/src/usr/local/www/js/pfSenseHelpers.js
@@ -152,6 +152,11 @@ function hideMask(name, hide) {
}
}
+// Set the help text for a given input
+function setHelpText(id, text) {
+ $('#' + id).parent().parent('div').find('span:nth-child(2)').html(text);
+}
+
// Toggle table row checkboxes and background colors on the pages that use sortable tables:
// /usr/local/www/firewall_nat.php
// /usr/local/www/firewall_nat_1to1.php
diff --git a/src/usr/local/www/system_advanced_firewall.php b/src/usr/local/www/system_advanced_firewall.php
index 99a3def..e39c3a0 100644
--- a/src/usr/local/www/system_advanced_firewall.php
+++ b/src/usr/local/www/system_advanced_firewall.php
@@ -734,10 +734,6 @@ print $form;
<script type="text/javascript">
//<![CDATA[
events.push(function() {
- // Change help text based on the selector value
- function setHelpText(id, text) {
- $('#' + id).parent().parent('div').find('span').html(text);
- }
function setOptText(val) {
var htext = '<span class="text-success">';
OpenPOWER on IntegriCloud