Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311697
log-utils.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
741 B
Subscribers
None
log-utils.js
View Options
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
Details
Attached
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
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment