summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/jquery
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-10 18:58:22 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-10 18:58:22 +0545
commit5a957b9a247a7bb798e7bc1f159492d9a0abded1 (patch)
treeb8654439ccd37fab50de8f4840dd95ed6e7defce /src/usr/local/www/jquery
parent932711c7ec2a6cdd19a4a71b9812b1811dae348e (diff)
downloadpfsense-5a957b9a247a7bb798e7bc1f159492d9a0abded1.zip
pfsense-5a957b9a247a7bb798e7bc1f159492d9a0abded1.tar.gz
More $Id and whitespace
from more obscure folders around the code
Diffstat (limited to 'src/usr/local/www/jquery')
-rw-r--r--src/usr/local/www/jquery/pfSense.js18
-rw-r--r--src/usr/local/www/jquery/pfSenseHelpers.js2
2 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/local/www/jquery/pfSense.js b/src/usr/local/www/jquery/pfSense.js
index 77234e7..a30b4b6 100644
--- a/src/usr/local/www/jquery/pfSense.js
+++ b/src/usr/local/www/jquery/pfSense.js
@@ -80,7 +80,7 @@ $(function() {
var group = $(this).parents('div.form-group');
var clone = group.clone(true);
- clone.find('*').removeAttr('value');
+ clone.find('*').removeAttr('value');
clone.appendTo(group.parent());
});
@@ -96,7 +96,7 @@ $(function() {
// Automatically change IpAddress mask selectors to 128/32 options for IPv6/IPv4 addresses
$('span.pfIpMask + select').each(function (idx, select){
var input = $(select).prevAll('input[type=text]');
-
+
input.on('change', function(e){
var isV6 = (input.val().indexOf(':') != -1), min = 0, max = 128;
if (!isV6)
@@ -105,10 +105,10 @@ $(function() {
if (input.val() == "")
return;
- // Eat all of the options with a value greater than max. We don't want them to be available
+ // Eat all of the options with a value greater than max. We don't want them to be available
while (select.options[0].value > max)
select.remove(0);
-
+
if (select.options.length < max) {
for (var i=select.options.length; i<=max; i++)
select.options.add(new Option(i, i), 0);
@@ -118,14 +118,14 @@ $(function() {
// Fire immediately
input.change();
});
-
+
// Add confirm to all btn-danger buttons and fa-trash icons
// Use element title in the confirmation message, or if not available
// the element value
$('.btn-danger, .fa-trash').on('click', function(e){
if(!($(this).hasClass('no-confirm'))) {
var msg = $.trim(this.textContent);
-
+
if(!msg)
var msg = $.trim(this.value).toLowerCase();
@@ -142,16 +142,16 @@ $(function() {
// Add toggle-all when there are multiple checkboxes and none of them are radio buttons
$('.control-label + .checkbox.multi').each(function() {
var a = $('<a name="btntoggleall" class="btn btn-xs btn-default">toggle all</a>');
-
+
if(($(this).html().indexOf("type=\"radio\"") == -1)) {
a.on('click', function() {
var wrap = $(this).parents('.form-group').find('.checkbox.multi'),
all = wrap.find('input[type=checkbox]'),
checked = wrap.find('input[type=checkbox]:checked');
-
+
all.prop('checked', (all.length != checked.length));
});
-
+
a.appendTo($(this));
}
});
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js
index 9ba9135..c7bca81 100644
--- a/src/usr/local/www/jquery/pfSenseHelpers.js
+++ b/src/usr/local/www/jquery/pfSenseHelpers.js
@@ -378,7 +378,7 @@ if($('#infoblock').length != 0) {
// Hide information on page load
$('#infoblock').hide();
-// SHow the help on clicking the info icon
+// Show the help on clicking the info icon
$('#showinfo').click(function() {
$('#infoblock').toggle();
}); \ No newline at end of file
OpenPOWER on IntegriCloud