Added ability to mark or 'star' a video to keep a short list of active video projects

This commit is contained in:
2023-03-13 22:23:34 -04:00
parent 85750b4de4
commit f27154b705
8 changed files with 54 additions and 7 deletions

View File

@ -1,6 +1,8 @@
$(document).ready(() ->
$('.channel-path').click(updateAttribute)
$('.video-active').click(updateAttribute)
$('.video-status').click(updateAttribute)
$('.video-serial').click(updateAttribute)
@ -14,6 +16,8 @@ updateAttribute = (e) ->
if newValue
if attr == 'status'
newValue = newValue.toLowerCase()
if attr == 'starred'
newValue = (String(newValue).toLowerCase() == 'true')
payload =
value: newValue
objectId = $('#' + type + '-id').val()
@ -22,6 +26,8 @@ updateAttribute = (e) ->
if data == 'success'
if attr == 'status'
newValue = capitalizeWord(newValue)
if attr == 'starred'
newValue = if newValue then 'True' else 'False'
elem.find('span').text(newValue)
)
else

View File

@ -156,9 +156,7 @@ hr{
}
}
.channel-path,
.video-status,
.video-serial{
.clickable-attr{
transition: background 230ms ease-in-out;
&:hover{