Commit Graph

103 Commits

Author SHA1 Message Date
Ghalid
1df9c4049b There should only be one search input on each page so there doesn't need to be an array anyway, remove arrow functions as per https://github.com/pi-hole/AdminLTE/pull/1100\#pullrequestreview-335618314
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>

Remove const

Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 14:51:34 -05:00
Ghalid
40d7e1498e Disable autocorrect in search boxes
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 12:06:48 -05:00
XhmikosR
2ba18a1b58 Be explicit about window.location
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 12:14:37 +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
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
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
DL6ER
72abc5dad4 Add button for pihole arpflush on Pi-hole settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-05-30 22:05:13 +02:00
DL6ER
4923a7576c Remove another mentioning of data-mask
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-04-12 16:01:35 +02:00
DL6ER
a692bdea27 Add missing semicolon
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-21 18:39:50 +02:00
DL6ER
77efbac43d Show cache info on Settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-21 15:42:15 +02:00
DL6ER
80017e9b41 Remove auto-dismissal for error messages on the settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-03 11:19:16 +02:00
DL6ER
f9d456720f Relax warnings. They are not needed any more.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-29 17:30:42 +02:00
DL6ER
78f6cb3751 Add option to disable logging without flushing logs (for temporary disabling without wanting to nuke the logs).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-01-18 17:09:20 +01:00
TheME
84c1e1a9d9 Change "?tab=" parameter when switching tabs 2017-11-02 20:40:46 +01:00
DL6ER
06d601a0ee 3 seconds before starting auto-dismissal
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-22 15:10:22 +02:00
DL6ER
618a046b64 Auto dismissal for info and error notifications
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-22 15:07:17 +02:00
DL6ER
1a707a081f Rearragne buttons on the system tabs
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-21 13:53:34 +02:00
DL6ER
a1d96e4e63 Improve Javascript (allow toggling of deletion and highlight "Save and Update" button on deletion) and :codacy:
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-21 12:08:00 +02:00
DL6ER
b70e43f8ba Fix blocking list Javascript
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-21 11:52:35 +02:00
DL6ER
852f0a733a Fix Javascript error that appears when there is no hash part on the URL
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-21 11:24:52 +02:00
DL6ER
3640867942 :codacy:
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-20 19:30:17 +02:00
Adam Warner
f6a05a00b3 tidy up some experimenting
Signed-off-by: Adam Warner <adamw@rner.email>
2017-10-19 23:09:13 +01:00
Adam Warner
62b8c0d733 fix dhcp lease table headers/footers.
Signed-off-by: Adam Warner <adamw@rner.email>
2017-10-19 23:06:38 +01:00
DL6ER
903cb2a4f4 Make DNS the default tab
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-19 10:55:02 +02:00
DL6ER
1e105f1df6 Change hash for save and reload
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-19 10:45:12 +02:00
DL6ER
37313bf400 Go to specified tab on save or hyperlink
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-19 10:41:03 +02:00
DL6ER
5ab4430ef0 halt -> poweroff
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-08 20:30:59 +02:00
gedetil
aac1b1ba05 Update settings.js
Implement "Halt system" button, next to "Restart system" button, on
admin/settings page.  Useful for doing clean shutdown before powering off.

Gilbert Detillieux <gedetil> 2017-04-11
2017-04-11 13:40:27 -05:00
Mcat12
acc83345fd Merge pull request #252 from pi-hole/customizeadlists
Manage adlists
2017-04-06 16:16:05 -04:00
Adam Warner
892bc5f1c5 :codacy: 2017-04-06 18:45:26 +01:00
Mcat12
7a5c8e899e Use button to remove lists 2017-03-31 20:16:58 -04:00
DL6ER
d104539708 API QR token generator (#410)
* Added API QR token generator

* Pass only token

* Corrected link
2017-02-27 22:33:35 +01:00
DL6ER
4f70973cbc EUPL license (#402)
* Move whole project to EUPL, copy MIT license to scripts/vendor/ and style/vendor/

* Added header to main PHP files

* Modified scripts in scripts/pi-hole/php

* Added header to scripts/pi-hole/js files

* Added license header to our custom style script

* Slight reformulation
2017-02-18 14:20:51 +01:00
DL6ER
8c2fbde5ab Fix syntax error 2017-02-09 00:39:53 +01:00
Mcat12
b586cb85ba Merge branch 'devel' into fix/IPv6field 2017-02-04 12:51:25 -05:00
Mcat12
1f6537ae7d Remove commented code 2017-02-02 18:23:50 -05:00
DL6ER
44aaed17a7 Back to previously used JS validator fpr IPs (it supports Copy&Paste) 2017-02-02 10:57:41 +01:00
DL6ER
f428d98fec Pleasing codacy 2017-02-01 15:59:01 +01:00
DL6ER
250389126d Copy row from currently active DHCP leases to input fields for static releases 2017-01-31 22:50:43 +01:00
DL6ER
fb0ca79584 Ensure input fields are always at the bottom of the table (and stay there when the user applies custom sorting) 2017-01-25 13:30:25 +01:00
DL6ER
b9f1c57bbb Codacy fixes 2017-01-25 12:04:28 +01:00
DL6ER
3d8246e4c3 Add static leases table to DHCP settings 2017-01-25 10:11:23 +01:00
DL6ER
6760ba80a7 Allow multiple upstream DNS server selection 2017-01-13 17:49:16 +01:00
DL6ER
6958f50039 Change data-mask extension to one that supports both IPv4 and IPv6 addresses. Add IPv6 DNS server fields on the settings page 2017-01-13 13:37:36 +01:00
DL6ER
4209320b87 Add glowing notification that users should disabled their router's DHCP server when first activating the DHCP server 2017-01-02 13:17:45 +01:00
DL6ER
d9c695dc4a Merge branch 'devel' into new/dhcpv6settings 2016-12-30 20:33:21 +00:00