Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344973
log-utils.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
954 B
Subscribers
None
log-utils.js
View Options
/**
* Copyright (C) 2019 The Software Heritage developers
* See the AUTHORS file at the top-level directory of this distribution
* License: GNU Affero General Public License version 3, or any later version
* See top-level LICENSE file for more information
*/
export
function
revsOrderingTypeClicked
(
event
)
{
const
urlParams
=
new
URLSearchParams
(
window
.
location
.
search
);
const
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
()
{
$
(
document
).
ready
(()
=>
{
const
urlParams
=
new
URLSearchParams
(
window
.
location
.
search
);
const
revsOrderingType
=
urlParams
.
get
(
'revs_ordering'
);
if
(
revsOrderingType
)
{
$
(
`:input[value="
${
revsOrderingType
}
"]`
).
prop
(
'checked'
,
true
);
}
});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 2:57 PM (4 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3239503
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment