Commit Graph

122 Commits

Author SHA1 Message Date
XhmikosR
792abf8624 Update settings.js
* cache variable
* camelcase variable name

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-25 21:27:36 +03:00
DL6ER
b6ad648842 Merge pull request #1329 from pi-hole/new/somepeoplelikecurves
Add checkbox (save state in localstorage) to toggle between bar and smooth
2020-05-25 20:08:42 +02:00
Adam Warner
3957e9eef1 Move some duplicated code to utils.js
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-23 11:04:30 +03:00
Adam Warner
eb05394b66 Add saveState/loadState callbacks
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-23 10:53:34 +03:00
Adam Warner
6b1340cfdf Add staveSave property bool to DHCP tables to remember last used sort direction/column
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-23 10:53:32 +03:00
XhmikosR
617447e534 Update settings.js
* fix "Pi-hole" case
* remove moot modal class

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-21 15:39:15 +03:00
Adam Warner
c4091a7b3b Add checkbox (save state in localstorage) to toggle between bar and smooth charts
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-18 20:56:21 +01:00
Adam Warner
d47d284ef9 Set default sort on DHCP lease tables to that of Hostname for ease of access
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-18 18:22:34 +01:00
XhmikosR
0e35b415ea JS: test for length explicitly. (#1240)
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-04 10:50:13 +03:00
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +00:00
DL6ER
373d59f751 Improve conditional forwarding settings so users can specify the subnet according to their needs.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-10 10:54:41 +02:00
DL6ER
a64810e00e Merge branch 'release/v5.0' into devel
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-08 12:25:18 +02:00
DL6ER
43b45d3da7 Merge pull request #1100 from Ghalid/patch-1
Disable text correction features, change types to make input fields easier to type in (especially for mobile devices)
2020-04-07 13:59:44 +02:00
XhmikosR
4af6a0785a Update xo to v0.28.0
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-03-20 10:31:32 +02:00
DL6ER
13b7b3d1a9 Remove redundant adlist management on settings page. This is still using CLI callbacks instead of working directly on the database.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-02-11 20:07:43 +01:00
Ghalid
d93f1a22cb Remove autocorrect in search boxes on groups
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2020-01-19 13:12:57 -05:00
Ghalid
050fdb1c34 Merge branch 'devel' into patch-1
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2020-01-19 12:49:36 -05:00
XhmikosR
704c352277 Format JS code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:18 +02:00
Ghalid
112a5abf80 Merge branch 'devel' into patch-1
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-29 14:22:12 -05:00
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