summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-10-01 12:03:42 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-10-01 12:03:42 -0400
commit3ece711605c23bda1176e341d8f96417d3b82b5d (patch)
tree249cf0e1e5ebb618f5bb3394505dc6892d31200b /src/usr/local/www/firewall_nat_edit.php
parentad6b0ac058b2c348df3a2aa3a541b212417e4d67 (diff)
downloadpfsense-3ece711605c23bda1176e341d8f96417d3b82b5d.zip
pfsense-3ece711605c23bda1176e341d8f96417d3b82b5d.tar.gz
Preparation #5159 (Javascript refactoring)
javascript/pfSenseHelpers.js created and populated with common hide/show/disable/enable functions file included via foot.inc Those functions removed from firewall_nat_edit.php to test
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_edit.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php
index 9d7578b..9a32ebb 100644
--- a/src/usr/local/www/firewall_nat_edit.php
+++ b/src/usr/local/www/firewall_nat_edit.php
@@ -970,28 +970,6 @@ events.push(function(){
var showsource = 0;
var iface_old = '';
- // ---------- "Library" functions ---------------------------------------------------------------------------------
- // Hides the <div> in which the specified input element lives so that the input, its label and help text are hidden
- function hideInput(id, hide) {
- if (hide)
- $('#' + id).parent().parent('div').addClass('hidden');
- else
- $('#' + id).parent().parent('div').removeClass('hidden');
- }
-
- // Disables the specified input element
- function disableInput(id, disable) {
- $('#' + id).prop("disabled", disable);
- }
-
- // Hides all elements of the specified class. This will usually be a section
- function hideClass(s_class, hide) {
- if (hide)
- $('.' + s_class).hide();
- else
- $('.' + s_class).show();
- }
-
// ---------- jQuery functions, lovingly converted from the original javascript------------------------------------------
function ext_change() {
OpenPOWER on IntegriCloud