Commit Graph

24 Commits

Author SHA1 Message Date
DL6ER
e0e10e7c5f Fix gravity from the web UI
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-17 20:15:55 +02:00
DL6ER
b30c1e0433 Finish settings-advanced.lp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-08 13:10:39 +02:00
DL6ER
8302ed6aed Ported gravity.lp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-07 15:24:03 +02:00
DL6ER
3b9a677a1f Ported network.lp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-07 10:58:08 +02:00
Christian König
7cfca502bc Remove unused eslint compat rule
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-05-24 11:12:47 +02:00
Adam Warner
bba9f22090 Merge pull request #1407 from pi-hole/js-removeAttr
gravity.js: replace `removeAttr()` with `prop()`
2020-05-30 15:38:02 +01:00
XhmikosR
d3da7b4339 gravity.js: replace removeAttr() with prop()
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 10:23:12 +03:00
XhmikosR
af47854a2d Use prop() for the disabled attribute.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 10:22:35 +03:00
XhmikosR
e7eb4bef9d Ignore the EventSource() errors
We have code checking for the presence of this, so it's OK to ignore these errors.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 17:24:28 +03:00
XhmikosR
0fa7de82b0 JS: Enforce camelcase.
It's a common convention to use camelcase for variable names.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 10:29:44 +03:00
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +00:00
XhmikosR
704c352277 Format JS code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:18 +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
a18a45e6b8 Detect ${OVER} and mirror its effect properly on the web interface
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-21 20:23:38 +02:00
DL6ER
2db45f806b Remove double click handler 2017-05-05 23:29:25 +02:00
Mcat12
acc83345fd Merge pull request #252 from pi-hole/customizeadlists
Manage adlists
2017-04-06 16:16:05 -04: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
d597b52f49 Some more IE compatibility tricks 2017-01-13 15:39:28 +01:00
DL6ER
ffe40009f1 Add "Save and Update" button 2017-01-02 15:07:23 +01:00
Mcat12
fab94e07fd Fix php links in js files
Also removed help.js because it's no longer used
2016-12-21 21:10:10 +01:00
Mcat12
2f65430a4d Move PHP scripts to scripts folder 2016-12-21 21:09:58 +01:00
DL6ER
e188cb6fbc Revert "Merge pull request #267 from pi-hole/folderStructure"
This reverts commit fba3d10fa4, reversing
changes made to 4ee75f4167.
2016-12-21 17:16:52 +01:00
Mcat12
30d70baf5e Fix php links in js files
Also removed help.js because it's no longer used
2016-12-19 19:59:08 -05:00
Mcat12
d1da1de597 Move PHP scripts to scripts folder 2016-12-19 19:44:51 -05:00