summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/services.inc1
-rwxr-xr-xusr/local/www/javascript/row_helper_dynamic.js7
2 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 166390b..ba52ee9 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -73,6 +73,7 @@ function services_dhcpd_configure() {
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/usr/local/sbin\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/var/db\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/var/run\n");
+ fwrite($fd, "touch {$g['dhcpd_chroot_path']}/var/run/log\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/usr\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/lib\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/run\n");
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++) {
OpenPOWER on IntegriCloud