Added ability to mark or 'star' a video to keep a short list of active video projects
This commit is contained in:
@ -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
|
||||
|
@ -156,9 +156,7 @@ hr{
|
||||
}
|
||||
}
|
||||
|
||||
.channel-path,
|
||||
.video-status,
|
||||
.video-serial{
|
||||
.clickable-attr{
|
||||
transition: background 230ms ease-in-out;
|
||||
|
||||
&:hover{
|
||||
|
Reference in New Issue
Block a user