diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-03 08:36:33 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-03 08:37:00 -0400 |
commit | 44fad9cc86fb89f51466c8524c87ebf5cbd869a5 (patch) | |
tree | 21242e1e08d451361552b63629e9664a0b5d0c8d /src/usr/local/www | |
parent | becd6caa05c6e5cd4ca25c596b8a2350b501b9fb (diff) | |
download | pfsense-44fad9cc86fb89f51466c8524c87ebf5cbd869a5.zip pfsense-44fad9cc86fb89f51466c8524c87ebf5cbd869a5.tar.gz |
Comment refinement
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/jquery/pfSenseHelpers.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js index 8fb24fb..0668489 100644 --- a/src/usr/local/www/jquery/pfSenseHelpers.js +++ b/src/usr/local/www/jquery/pfSenseHelpers.js @@ -1,6 +1,5 @@ /* ==================================================================== * Copyright (c) 2004-2015 Electric Sheep Fencing, LLC. All rights reserved. - * Copyright (c) 2004, 2005 Scott Ullrich * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -139,10 +138,13 @@ function hideLabel(text, hide) { element.parent('div').removeClass('hidden'); } -// The followinf functions are used by form froups assigned a class of "repeatable" and provide the ability -// to add/delete new rows of sequentially numbered elements, their labels and their help text +// The following functions are used by Form_Groups assigned a class of "repeatable" and provide the ability +// to add/delete rows of sequentially numbered elements, their labels and their help text // See firewall_aliases_edit.php for an example +// NOTE: retainhelp is a global var that defined prevents any help text from being deleted as lines are inserted. +// IOW it causes every row to have help text, not just the last row + function setMasks() { // Find all ipaddress masks and make dynamic based on address family of input $('span.pfIpMask + select').each(function (idx, select){ @@ -241,13 +243,13 @@ function delete_row(row) { } function add_row() { - // Find the lst repeatable group + // Find the last repeatable group var lastRepeatableGroup = $('.repeatable:last'); // Clone it var newGroup = lastRepeatableGroup.clone(true); - // Increment the suffix number for each input elemnt in the new group + // Increment the suffix number for each input element in the new group $(newGroup).find('input').each(function() { $(this).prop("id", bumpStringInt(this.id)); $(this).prop("name", bumpStringInt(this.name)); |