almost complete wifi page redesign

This commit is contained in:
2017-07-16 20:37:31 +02:00
parent a85582b94e
commit 856a694f0b
41 changed files with 1692 additions and 651 deletions
+3 -2
View File
@@ -393,8 +393,9 @@
return cb;
};
// Toggle class
cb.toggleClass = function (classes) {
classHelper(classes, 'toggle', nodes);
cb.toggleClass = function (classes, set) {
var method = ((typeof set === 'undefined') ? 'toggle' : (+set ? 'add' : 'remove'));
classHelper(classes, method, nodes);
return cb;
};
// Has class
+12
View File
@@ -93,3 +93,15 @@ String.prototype.format = function () {
return out;
};
function e(str) {
return String(str)
.replace(/&/g, '&')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
}
function undef(x) {
return typeof x == 'undefined';
}
+1 -1
View File
@@ -20,7 +20,7 @@
// clear the AP list
var $list = $('#ap-list');
// remove old APs
$('.AP').remove();
$('#ap-list .AP').remove();
$list.toggle(done);
$('#ap-loader').toggle(!done);