summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2012-04-07 15:50:28 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2012-04-07 15:55:12 -0600
commit0b4ae4b5caa2f64acec0fc89c3c5801de9e9c73e (patch)
tree93d28aa400b0dc26a966ded13c1da2e158937133 /usr
parent93cd15be68e5477eafdc0e7940715415fe3e38a8 (diff)
downloadpfsense-0b4ae4b5caa2f64acec0fc89c3c5801de9e9c73e.zip
pfsense-0b4ae4b5caa2f64acec0fc89c3c5801de9e9c73e.tar.gz
Check for this function before calling it to avoid an error when hitting that line for pages that don't include the js file for it.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/javascript/row_helper.js3
-rwxr-xr-xusr/local/www/javascript/row_helper_dynamic.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/javascript/row_helper.js b/usr/local/www/javascript/row_helper.js
index 2233927..8c9ff4f 100755
--- a/usr/local/www/javascript/row_helper.js
+++ b/usr/local/www/javascript/row_helper.js
@@ -66,7 +66,8 @@ var addRowTo = (function() {
tr.appendChild(td);
tbody.appendChild(tr);
totalrows++;
- $(tr).ipv4v6ify();
+ if($(tr).ipv4v6ify)
+ $(tr).ipv4v6ify();
});
})();
diff --git a/usr/local/www/javascript/row_helper_dynamic.js b/usr/local/www/javascript/row_helper_dynamic.js
index d3f2681..b7b8f4f 100755
--- a/usr/local/www/javascript/row_helper_dynamic.js
+++ b/usr/local/www/javascript/row_helper_dynamic.js
@@ -65,7 +65,8 @@ var addRowTo = (function() {
tbody.appendChild(tr);
if(rowhelper_onAdd != '')
eval(rowhelper_onAdd);
- $(tr).ipv4v6ify();
+ if($(tr).ipv4v6ify)
+ $(tr).ipv4v6ify();
});
})();
OpenPOWER on IntegriCloud