diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-12-18 14:42:31 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-12-18 14:42:31 -0500 |
commit | d64fa7f25478b66da1f17222f0a7fc5da080295b (patch) | |
tree | e86047703d1437a7fb69fe31cd4c5907712d0d38 /usr/local | |
parent | cc9464c18968b65f7d8c8d8baf8f306ea2fc61e1 (diff) | |
download | pfsense-d64fa7f25478b66da1f17222f0a7fc5da080295b.zip pfsense-d64fa7f25478b66da1f17222f0a7fc5da080295b.tar.gz |
Touch log file so it can be created on livecd
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/javascript/row_helper_dynamic.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/javascript/row_helper_dynamic.js b/usr/local/www/javascript/row_helper_dynamic.js index 30bca25..a69529c 100755 --- a/usr/local/www/javascript/row_helper_dynamic.js +++ b/usr/local/www/javascript/row_helper_dynamic.js @@ -24,8 +24,11 @@ var addRowTo = (function() { tbody = d.getElementById(tableId).getElementsByTagName("tbody").item(0); tr = d.createElement("tr"); totalrows++; - if(function_exists('row_helper_dynamic_custom')) - onChange = " onchange='row_helper_dynamic_custom(" + tr + ")' "; + // Check to see if our hook function is defined. If it is defined we will + // call into the hook for every row change event allowing javascript + // to enable/disable and do other things to the row. + if(function_exists('row_helper_dynamic_custom') == true) + onChange = " onChange='javascript:row_helper_dynamic_custom(" + tr + ")' "; if (!objectSize) objectSize = rowsize[i]; for (i = 0; i < field_counter_js; i++) { |