From 0d876890789a793c67298c44d46c29433e5cfb52 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 2 Jan 2019 22:34:29 -0600 Subject: [PATCH] Make entire style name clickable --- manage.html | 6 +++--- manage/manage-ui.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manage.html b/manage.html index 17e72262..1c2b452b 100644 --- a/manage.html +++ b/manage.html @@ -49,10 +49,10 @@ -
- + + -
+
diff --git a/manage/manage-ui.js b/manage/manage-ui.js index d68bcb6c..3c4b9c50 100644 --- a/manage/manage-ui.js +++ b/manage/manage-ui.js @@ -103,7 +103,7 @@ const UI = { entry, entryClassBase: entry.className, checker: $('.entry-state-toggle', entry) || {}, - nameLink: $('a.entry-name', entry), + nameLink: $('.entry-name', entry), editLink: $('.entry-edit', entry) || {}, editHrefBase: 'edit.html?id=', appliesTo: $('.entry-applies-to', entry), @@ -120,7 +120,7 @@ const UI = { parts.checker.checked = style.enabled; - parts.nameLink.textContent = tWordBreak(style.name); + $('.entry-name-text', parts.nameLink).textContent = tWordBreak(style.name); parts.nameLink.href = parts.editLink.href = parts.editHrefBase + style.id; // clear the code to free up some memory