Fixed default values for attribute editing

This commit is contained in:
Gregory Ballantine 2023-03-07 10:55:29 -05:00
parent 0d652ffc90
commit 8905bed454

View File

@ -1,6 +1,6 @@
$(document).ready(() ->
$('.channel-path').click((e) ->
newPath = prompt('New channel directory path', $('.channel-path').val())
newPath = prompt('New channel directory path', $(this).find('span').text())
if newPath
payload =
directory_path: newPath
@ -12,7 +12,7 @@ $(document).ready(() ->
)
$('.video-status').click((e) ->
newStatus = prompt('New video status', $('.video-status').val())
newStatus = prompt('New video status', $(this).find('span').text())
if newStatus
newStatus = newStatus.toLowerCase()
payload =
@ -25,7 +25,7 @@ $(document).ready(() ->
)
$('.video-serial').click((e) ->
newSerial = prompt('New video serial number', $('.video-serial').val())
newSerial = prompt('New video serial number', $(this).find('span').text())
if newSerial
payload =
serial: newSerial