summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/jquery
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-01 12:19:03 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-01 12:20:12 -0400
commita80b4a2291ee38af77e2c48b270bf9b3d509f483 (patch)
tree0d9d525278f6626c0facf3fe8637133c3e09e90c /src/usr/local/www/jquery
parent2752a9442847700c82383d32e7166582dda023b2 (diff)
downloadpfsense-a80b4a2291ee38af77e2c48b270bf9b3d509f483.zip
pfsense-a80b4a2291ee38af77e2c48b270bf9b3d509f483.tar.gz
Coded a new system for displaying tables of input elements with jQuery providing
Delete/Add/Move functionality without breaking the inputs. See pfWiki for details
Diffstat (limited to 'src/usr/local/www/jquery')
-rw-r--r--src/usr/local/www/jquery/pfSense.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/local/www/jquery/pfSense.js b/src/usr/local/www/jquery/pfSense.js
index e342d3f..ffd56dc 100644
--- a/src/usr/local/www/jquery/pfSense.js
+++ b/src/usr/local/www/jquery/pfSense.js
@@ -52,6 +52,7 @@ $(function() {
var clone = group.clone(true);
clone.find('*').val(''); //removeAttr('value');
+// clone.find('*').removeAttr('value');
clone.appendTo(group.parent());
});
@@ -80,7 +81,8 @@ $(function() {
var group = $(this).parents('div.form-group');
var clone = group.clone(true);
- clone.find('*').val(''); //removeAttr('value');
+ clone.find('*').removeAttr('value');
+// clone.find('*').val('');
clone.appendTo(group.parent());
});
@@ -93,7 +95,6 @@ $(function() {
});
})();
- // Find all ipaddress masks and make dynamic based on address family of input
$('span.pfIpMask + select').each(function (idx, select){
var input = $(select).prevAll('input[type=text]');
@@ -118,7 +119,7 @@ $(function() {
// Fire immediately
input.change();
});
-
+
// Add confirm to all btn-danger buttons
$('.btn-danger').on('click', function(e){
var q = 'Are you sure you wish to '+ $.trim(this.textContent) +'?';
OpenPOWER on IntegriCloud