yubiuser
5aeb52ee50
Merge pull request #1948 from pi-hole/tweak/datatables
...
Tweak to datatables column rendering
2021-10-28 20:21:01 +02:00
yubiuser
98ec9ee2fc
Set stateDuration to 0 for all saved datatables to store the state indefinitely ( #1944 )
...
* Set stateDuration to 0 for all saved datatables to store the state indefinite
Signed-off-by: Christian König <ckoenig@posteo.de >
* Move stateDuration to utils.js
Signed-off-by: Christian König <ckoenig@posteo.de >
* Remove duplicated code as it is already part of utils.stateLoadCallback
Signed-off-by: Christian König <ckoenig@posteo.de >
* Fix function
Signed-off-by: Christian König <ckoenig@posteo.de >
* Revert "Fix function"
This reverts commit 2f54f5f988 .
Signed-off-by: Christian König <ckoenig@posteo.de >
* Revert "Move stateDuration to utils.js"
This reverts commit 6a3e7786bc .
Signed-off-by: Christian König <ckoenig@posteo.de >
2021-10-27 20:06:02 +01:00
Adam Warner
0e483a8eea
Force all columns in any declared datatable to render using datatables render.text function to prevent possible (very low risk, requiring authenticated dashboard anyway) XSS.
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2021-10-27 19:49:46 +01:00
DL6ER
0d0a8dba67
Change prettier option trailingComma from "none" to the new default "es5" (see https://prettier.io/docs/en/options.html#trailing-commas )
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-06-23 11:26:43 +02:00
yubiuser
87fa180e67
Remember last used sort column/direction on Local DNS Records table and CNAME table
...
Signed-off-by: yubiuser <ckoenig@posteo.de >
2020-08-16 23:13:49 +02:00
yubiuser
02e0b1639d
XO fixes
...
Signed-off-by: yubiuser <ckoenig@posteo.de >
2020-08-02 22:16:41 +02:00
yubiuser
2667eb1c26
Fix indentation
...
Signed-off-by: yubiuser <ckoenig@posteo.de >
2020-08-02 20:42:42 +02:00
yubiuser
3b618add09
Adds ALL to list selector in Local DNS Records and CNAME Records
...
Signed-off-by: yubiuser <ckoenig@posteo.de >
2020-07-26 21:40:07 +02:00
Adam Warner
c949516ee1
make use of utils.escapeHtml on the JS side of things, and html_entity_decode/htmlentities in PHP
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-06-13 18:50:36 +01:00
XhmikosR
cecb5aa88c
Use $(fn)
...
This is the recommended way in jQuery 3.x.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-30 10:24:55 +03:00
XhmikosR
f04647fc9e
Ignore the remaining console errors for now.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-29 10:42:21 +03:00
Adam Warner
7b2d396295
require auth for the customDNS page
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-20 08:26:21 +01:00
XhmikosR
43151d3c43
Add type="button" to all buttons.
...
The default is `type="submit"`.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-11 21:40:26 +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
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
Rick van Hattem
0c29a09a45
Add correct IP sorting for the Custom DNS table
...
Signed-off-by: Rick van Hattem <Wolph@wol.ph >
2020-03-30 22:29:47 +02: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
dee16f6c7a
Switch to using Font Awesome
...
This should be more consistent.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-01-19 13:53:48 +02:00
XhmikosR
b74f0f3969
Fix the remaining lint issues
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-01-02 19:42:19 +02: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
DL6ER
deb50a8e4a
Ensure Actions column is not sortable.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-12-20 16:14:17 +00: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
Mograine
ee7edb5fab
Add feedback to users
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-11-27 00:40:43 +01:00
Mograine
192ad7ce8b
Allow to use same Domain for IPv4/IPv6
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-10-28 13:18:08 +01:00
Mograine
820a92998e
Remove unused var
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-10-27 16:48:39 +01:00
Pierre Ghiot
c44c5a7d32
Create customdns.js
...
Signed-off-by: Mograine <ghiot.pierre@gmail.com >
2019-10-27 16:48:39 +01:00