Page MenuHomeSoftware Heritage

log-utils.js
No OneTemporary

log-utils.js

export function revsOrderingTypeClicked(event) {
let urlParams = new URLSearchParams(window.location.search);
let orderingType = $(event.target).val();
if (orderingType) {
urlParams.set('revs_ordering', $(event.target).val());
} else if (urlParams.has('revs_ordering')) {
urlParams.delete('revs_ordering');
}
window.location.search = urlParams.toString();
}
export function initRevisionsLog() {
swh.webapp.initTableRowLinks('tr.swh-revision-log-entry');
$(document).ready(() => {
let urlParams = new URLSearchParams(window.location.search);
let revsOrderingType = urlParams.get('revs_ordering');
if (revsOrderingType) {
$(`:input[value="${revsOrderingType}"]`).prop('checked', true);
}
});
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 10:28 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3326982

Event Timeline