From 20d71bfa8185c5e640f679c9912cad986aef7c32 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sun, 19 Apr 2020 16:11:23 +0000 Subject: [PATCH] Finish #30 --- public/js/title.js | 4 ++++ src/views/title.ecr | 39 ++++++++++++++++++++++++--------------- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/public/js/title.js b/public/js/title.js index 18a39ed..4febf2c 100644 --- a/public/js/title.js +++ b/public/js/title.js @@ -97,6 +97,10 @@ const edit = (eid) => { const item = $(`#${eid}`); url = item.find('img').attr('data-src'); displayName = item.find('.uk-card-title').attr('data-title'); + $('#title-progress-control').attr('hidden', ''); + } + else { + $('#title-progress-control').removeAttr('hidden'); } cover.attr('data-src', url); diff --git a/src/views/title.ecr b/src/views/title.ecr index e8c39b5..a8f37c8 100644 --- a/src/views/title.ecr +++ b/src/views/title.ecr @@ -116,26 +116,35 @@ - -
-
- -
-
-
-
- - Upload a cover image by dropping it here or -
- - selecting one +
+ +
+
+ +
+
+
+
+ + Upload a cover image by dropping it here or +
+ + selecting one +
-
+
+ +
+ -