Fixed news widget not refreshing when the refresh option is clicked.
Review Request #10694 — Created Sept. 6, 2019 and updated
In the HTML file where the onclick listener is attached, it tries to
attach it to an anchor tag with the class "reload-news". The actual
tag that is meant to handle refreshing the news widget has an id set
to "reload-news", rather than a class.This changes that CSS selector to use the id, rather than the class.
Tested locally with console.log() and by adding a debugger statement to the on click listener, and then clicking on the refresh news widget item. This triggers an AJAX call, which is visible in the network tab.
Summary | ID | Author |
---|---|---|
8f50d6247d4b66da866d3983d7ae4458ba1a267d | amalik2 |
Description | From | Last Updated | ||
---|---|---|---|---|
Can you wrap your description and testing done at 72 characters? |
|
|||
The summary is too long. It must be one line and keep to <= 72 characters. You can simplify it … |
|
|||
We can get rid of the a bit. It's actually faster to look it up as a pure ID. |
|
|||
There are no open issues |
- Description:
-
~ Fixed incorrect CSS selector being used to attach click handler for news widget refresh.
~ Fixed incorrect CSS selector being used to attach click handler for
+ news widget refresh. ~ In the HTML file where the onclick listener is attached, it tries to attach it to an anchor tag with the class "reload-news". The actual tag that is meant to handle refreshing the news widget has an id set to "reload-news", rather than a class.
~ In the HTML file where the onclick listener is attached, it tries to
+ attach it to an anchor tag with the class "reload-news". The actual + tag that is meant to handle refreshing the news widget has an id set + to "reload-news", rather than a class. This changes that CSS selector to use the id, rather than the class.
- Testing Done:
-
~ Tested locally with console.log() and by adding a debugger statement to the on click listener, and then clicking on the refresh news widget item. This triggers an AJAX call, which is visible in the network tab.
~ Tested locally with console.log() and by adding a debugger statement to
+ the on click listener, and then clicking on the refresh news widget + item. This triggers an AJAX call, which is visible in the network tab.
- Summary:
-
Fixed incorrect CSS selector being used to attach click handler for news widget refresh.Fixed news widget not refreshing when the refresh option is clicked.
- Description:
-
~ Fixed incorrect CSS selector being used to attach click handler for
~ Fixed news widget not refreshing when the refresh option is clicked.
- news widget refresh. In the HTML file where the onclick listener is attached, it tries to
attach it to an anchor tag with the class "reload-news". The actual tag that is meant to handle refreshing the news widget has an id set to "reload-news", rather than a class. This changes that CSS selector to use the id, rather than the class.
- Description:
-
- Fixed news widget not refreshing when the refresh option is clicked.
- In the HTML file where the onclick listener is attached, it tries to
attach it to an anchor tag with the class "reload-news". The actual tag that is meant to handle refreshing the news widget has an id set to "reload-news", rather than a class. This changes that CSS selector to use the id, rather than the class.
- Commits:
-
Summary ID Author 531fba9a54402c1ea045d01af07c65666acf99ea amalik2 8f50d6247d4b66da866d3983d7ae4458ba1a267d amalik2