diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-01-30 08:59:01 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-01-30 08:59:36 -0500 |
commit | 678c6a56bce239ac152e3d9fe051ad8508ab3ce3 (patch) | |
tree | 4219634499081abe802d2fa7837e99284d093650 /src/usr/local | |
parent | 30cc3aec31e200cfcec2e1f70cfa29534cd3b99d (diff) | |
download | pfsense-678c6a56bce239ac152e3d9fe051ad8508ab3ce3.zip pfsense-678c6a56bce239ac152e3d9fe051ad8508ab3ce3.tar.gz |
Fixed #7171
Moved setHelpText() to helpers file
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/js/pfSenseHelpers.js | 5 | ||||
-rw-r--r-- | src/usr/local/www/system_advanced_firewall.php | 4 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 6c613d1..159d066 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -2055,10 +2055,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 49c9415..f17e422 100644 --- a/src/usr/local/www/js/pfSenseHelpers.js +++ b/src/usr/local/www/js/pfSenseHelpers.js @@ -120,6 +120,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 3fc3b10..7779133 100644 --- a/src/usr/local/www/system_advanced_firewall.php +++ b/src/usr/local/www/system_advanced_firewall.php @@ -699,10 +699,6 @@ print $form; //<![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">'; |