-
-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UI-related antigravity changes #2700
Conversation
Signed-off-by: DL6ER <dl6er@dl6er.de>
Oh, yeah, sorry. This is an unexpected regression of me pushing the related changes for pi-hole/FTL#1629 into the same branch. I will revert the last commit in here and open a new PR for the latter. |
48f27ef
to
2a68f56
Compare
Signed-off-by: DL6ER <dl6er@dl6er.de>
This is a design issue. Maybe we can improve the layout of this "details" section (using flex columns or making some other changes) to avoid this overlapping. |
You know, I am by no means a web designer. Concerning web design, I'm all in "Adam mode" (that is: throw several things against a wall and, as soon as something sticks, run away as fast as possible). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general: are we using the term "blocklist", "adlist" or "denylist" in v6?
L 37
placeholder="Adlist description (optional)
> placeholder="List description (optional)
L44
after modifying your adlists.
> after modifying your lists
@@ -480,28 +496,29 @@ function delItems(ids) { | |||
}); | |||
} | |||
|
|||
function addAdlist() { | |||
function addAdlist(event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function addAdlist(event) { | |
function addList(event) { |
@@ -13,7 +13,8 @@ var GETDict = {}; | |||
$(function () { | |||
GETDict = utils.parseQueryString(); | |||
|
|||
$("#btnAdd").on("click", addAdlist); | |||
$("#btnAddAllow").on("click", { type: "allow" }, addAdlist); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$("#btnAddAllow").on("click", { type: "allow" }, addAdlist); | |
$("#btnAddAllow").on("click", { type: "allow" }, addList); |
@@ -13,7 +13,8 @@ var GETDict = {}; | |||
$(function () { | |||
GETDict = utils.parseQueryString(); | |||
|
|||
$("#btnAdd").on("click", addAdlist); | |||
$("#btnAddAllow").on("click", { type: "allow" }, addAdlist); | |||
$("#btnAddBlock").on("click", { type: "block" }, addAdlist); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$("#btnAddBlock").on("click", { type: "block" }, addAdlist); | |
$("#btnAddBlock").on("click", { type: "block" }, addList); |
"Blocklist" for gravity domains, "denylist" for manually added domains on the "domainlist" of type "denied" (may be exact or regex). I don't think "adlist" should be used anywhere as the lists block and maybe more than just ads (e.g., adult content, etc.). |
Signed-off-by: DL6ER <dl6er@dl6er.de>
Fix the "Cannot read properties of undefined" error: - The `function editAdlist(event)` wasn't receiving any arguments, because every call to this function is not passing arguments, so `event` was undefined. Using `data-type` attribute to pass the value and avoid the error. Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
What does this implement/fix?
Add support for new antigravity table added in pi-hole/pi-hole#5330
This is a follow-up on #2618 which was force-closed and cannot be re-opened.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.