diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2012-04-07 15:50:28 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2012-04-07 15:55:12 -0600 |
commit | 0b4ae4b5caa2f64acec0fc89c3c5801de9e9c73e (patch) | |
tree | 93d28aa400b0dc26a966ded13c1da2e158937133 /usr | |
parent | 93cd15be68e5477eafdc0e7940715415fe3e38a8 (diff) | |
download | pfsense-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-x | usr/local/www/javascript/row_helper.js | 3 | ||||
-rwxr-xr-x | usr/local/www/javascript/row_helper_dynamic.js | 3 |
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(); }); })(); |