DL6ER
8898a742d2
Use one variable less.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-12-17 18:14:49 +02:00
XhmikosR
f96d6cc0f0
Remove more unused variables
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 17:15:59 +02:00
DL6ER
59b04047d6
Merge pull request #1086 from pi-hole/js-license-header
...
Add missing license header
2019-12-17 15:56:31 +01:00
DL6ER
aad00db5b6
Merge pull request #1085 from pi-hole/reuse-dateformat
...
Reuse the `dateformat` variable
2019-12-17 15:55:41 +01:00
DL6ER
f9496c5c6e
Merge pull request #1087 from pi-hole/let
...
Use var instead of let.
2019-12-17 15:54:01 +01:00
DL6ER
49df077a66
Merge pull request #1089 from pi-hole/XhmikosR-patch-2
...
Reuse variable and make code clearer
2019-12-17 15:53:32 +01:00
DL6ER
f084fa1991
Merge pull request #1091 from pi-hole/text
...
Use `text()` for the token
2019-12-17 15:49:05 +01:00
XhmikosR
f486935eb8
Use text() for the token
...
We don't need any HTML.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 15:57:50 +02:00
XhmikosR
18cfd8dab1
Reuse variable and make code clearer
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 12:19:43 +02:00
XhmikosR
ef396ede5b
Use var instead of let.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 10:47:01 +02:00
XhmikosR
689aa6afd6
Add missing license headers
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 10:46:36 +02:00
XhmikosR
7d9e32bac6
Reuse the dateformat variable
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 09:59:01 +02:00
XhmikosR
9c1846885a
Clean up JS
...
* remove unused variables/functions
* use the dot notation
* use explicit coercion
* remove unneeded else
* use `textContent` instead of `innerHTML`
* cache a few `getElementById` calls
* fix a couple of undefined variables
* various assorted lint tweaks
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-16 20:36:40 +02:00
XhmikosR
97bc779299
db_graph.js: Fix IE 11
...
IE doesn't support `Array.includes()`
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-16 19:29:24 +02:00
DL6ER
8c20ac58b9
Merge pull request #1072 from pi-hole/js
...
settings.js: fix object shorthand
2019-12-16 12:57:45 +01:00
DL6ER
52f5be0c8f
Merge pull request #992 from trimalcione/devel
...
Add DHCP leases export/import from teleporter
2019-12-16 11:22:28 +01:00
trimalcione
03326ebe09
fix DHCP tab syncing after telereporter import
...
Signed-off-by: trimalcione <okchtioui@gmail.com >
2019-12-16 00:37:23 +01:00
XhmikosR
d91b605563
settings.js: fix object shorthand
...
This broke IE
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-11 00:30:08 +02:00
XhmikosR
7031d19d25
Remove unneeded escape characters
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-09 21:50:42 +02:00
XhmikosR
d65b5be5e2
A few CSS tweaks.
...
Add utilities classes and fix a few CSS issues.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-09 21:36:58 +02:00
XhmikosR
5275faacb1
Lowercase hex colors.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-09 16:53:21 +02:00
XhmikosR
d94ea9e8fe
Get rid of js/header.js.
...
Wrap the code in `noscript instead. Also move its CSS in `head`.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-09 16:52:49 +02:00
Adam Warner
a9852b8762
Merge pull request #1064 from XhmikosR/patch-4
...
Remove unused variables
2019-12-08 14:31:16 +00:00
XhmikosR
37c849ce2b
Remove unused variables
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-07 11:49:49 +02:00
DL6ER
ac4a1d0a61
Remove more dead code
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-12-04 20:46:08 +00:00
DL6ER
0cf3934b87
Merge branch 'patch-1' of https://github.com/WaLLy3K/AdminLTE into WaLLy3K-patch-1
2019-12-04 20:43:20 +00:00
Adam Warner
54610496a1
Merge pull request #1035 from Mograine/master
...
Add ability to manage custom DNS records
2019-11-29 13:28:56 +00:00
Mograine
ee7edb5fab
Add feedback to users
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-11-27 00:40:43 +01:00
Linus
b2f9fd0211
Remove remaining absolute paths
...
Signed-off-by: Linus <wendefelix1998@gmail.com >
2019-11-18 16:13:08 +01:00
Adam Warner
339d63736a
Merge pull request #1028 from pi-hole/tweak/AddCommentEntryToListPages
...
Allow user to add in a comment next to domain entry
2019-11-15 21:00:50 +00:00
Adam Warner
acf448f592
Merge pull request #1029 from pi-hole/tweak/AddCommentEntryToBlocklistPage
...
Add ability for user to include comment when adding a blocklist
2019-11-14 15:46:10 +00:00
DL6ER
858a916dcb
Top Clients (blocked only) tooltip should show total number of blocked queries. The percentage is already computed correctly.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-11-02 11:07:43 +01:00
Mograine
192ad7ce8b
Allow to use same Domain for IPv4/IPv6
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-10-28 13:18:08 +01:00
Mograine
820a92998e
Remove unused var
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-10-27 16:48:39 +01:00
Pierre Ghiot
c44c5a7d32
Create customdns.js
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-10-27 16:48:39 +01:00
Adam Warner
8311a0aefc
Add ability for user to include comment when adding a blocklist
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2019-10-14 22:59:05 +01:00
Adam Warner
c65b9a3468
remove unnecessary semicolon as per codefactor.io
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2019-10-14 22:02:59 +01:00
Adam Warner
07195fb4e7
Allow user to add in a comment next to domain entry
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2019-10-14 21:55:29 +01:00
Adam Warner
b7d3ddd2b0
Merge branch 'devel' into release/v4.3.2
2019-09-22 00:58:42 +01:00
DL6ER
c399043db4
Use correct IDs for spinners in index.js
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-09-12 21:11:18 -04:00
denny0754
01a29f6555
Fixed Issue#983
2019-09-12 21:11:13 -04:00
TheME
e816c28fd0
fix broken Icons
...
Signed-off-by: Th3M3 <the_me@hotmail.de >
2019-09-12 21:11:12 -04:00
Daniel
f6aeac5a1c
Improve audit logic to batch requests.
...
Signed-off-by: Daniel <daniel@developerdan.com >
2019-09-12 21:11:10 -04:00
Mcat12
964c54360b
Don't show the "Click to ..." tooltip when filtering is disabled
...
Fixes #971
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-09-12 21:05:57 -04:00
DL6ER
a8b4cb74d8
Check data before converting. This allows us to detect if there is no data for the graph so we can hide it. Fixes #932
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-09-12 21:05:53 -04:00
DL6ER
c7aa2556a1
Add source URL to the JS file
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-09-12 21:05:50 -04:00
DL6ER
83013993cd
Also show "N/A" if the name column is NULL
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-09-12 21:05:50 -04:00
DL6ER
a027715247
Move ip-address-sorting into its own file
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-09-12 21:05:49 -04:00
DL6ER
f830bfbc7b
Add IP address sorting for the network table, based on https://datatables.net/plug-ins/sorting/ip-address
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-09-12 21:05:48 -04:00
DL6ER
c8086b4239
Check fields against null before trying to obtain their lengths.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-09-12 21:05:47 -04:00