Commit Graph

63 Commits

Author SHA1 Message Date
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
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
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