From 8905bed454b4a88316b156aaf4ae5d8fbb839b5c Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Tue, 7 Mar 2023 10:55:29 -0500 Subject: [PATCH] Fixed default values for attribute editing --- assets/coffee/wyrm.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/coffee/wyrm.coffee b/assets/coffee/wyrm.coffee index 4bbc3ba..4bd577a 100644 --- a/assets/coffee/wyrm.coffee +++ b/assets/coffee/wyrm.coffee @@ -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