Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/assets/js/outage-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// Where "view all" links go:
newsPage: "https://www.rcac.purdue.edu/news/outages-and-maintenance",
// News type whose alias matches this pattern is treated as outage news:
typeAliasPattern: /outage/i,
typeAliasPattern: /outages-and-maintenance/i,
homepageOnly: true, // require #outage-widget-anchor on the page
upcomingWindowDays: 14, // how far ahead to surface scheduled work
staleActiveDays: 7, // open-ended items older than this are ignored
Expand Down Expand Up @@ -131,7 +131,7 @@
return resolveOutageTypeId()
.then(function (typeId) {
var url = CONFIG.apiBase + "/news?type=" + typeId +
"&limit=25&order=datetimecreated&order_dir=desc";
"&limit=25&order=datetimenews&order_dir=desc";
return fetchJSON(url);
})
.then(function (json) {
Expand Down