Commit Graph

18 Commits

Author SHA1 Message Date
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
Paul Mannarino
256aff73a6 Replace custom httpGet() with $.ajax()" (#1371)
Signed-off-by: Paul Mannarino <paul.mannarino@gmail.com>
2020-05-25 21:59:18 +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
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
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
689aa6afd6 Add missing license headers
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 10:46:36 +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
37c849ce2b Remove unused variables
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-07 11:49:49 +02:00
Linus
b2f9fd0211 Remove remaining absolute paths
Signed-off-by: Linus <wendefelix1998@gmail.com>
2019-11-18 16:13:08 +01:00
Mcat12
4d9d9dc949 Require CSRF token for debug log generation 2017-04-02 19:23:03 -04:00
DL6ER
ab974f3f03 Disable checkbox after starting generation of debug log since the action can not be changed afterwards 2017-02-23 12:22:03 +01:00
DL6ER
20ce214c9f Add checkbox if the user wants his debug log to be uploaded automatically 2017-02-22 19:47:58 +01:00
DL6ER
71672319af Another codacy commit 2017-02-22 18:07:12 +01:00
DL6ER
4cc917dd91 Codacy 2017-02-22 15:07:02 +01:00
DL6ER
cc13cf5e33 Internet explorer + Windows Edge compatibility 2017-02-10 12:26:20 +01:00
DL6ER
9765b38ec2 Added online debug log creator 2017-02-10 12:22:59 +01:00