Make entire style name clickable

This commit is contained in:
Rob Garrison 2019-01-02 22:34:29 -06:00
parent bc3f2e0fcf
commit 0d87689078
2 changed files with 5 additions and 5 deletions

View File

@ -49,10 +49,10 @@
</svg> </svg>
</label> </label>
</div> </div>
<div class="entry-col entry-name"> <a href="#" class="entry-col entry-name">
<a href="#" class="entry-name"></a> <span class="entry-name-text"></span>
<span class="entry-labels"></span> <span class="entry-labels"></span>
</div> </a>
<div class="entry-col entry-actions"> <div class="entry-col entry-actions">
<a href="#" class="entry-configure-usercss tt-e" i18n-data-title="configureStyle"> <a href="#" class="entry-configure-usercss tt-e" i18n-data-title="configureStyle">
<svg class="svg-icon entry-config" viewBox="0 0 24 24"> <svg class="svg-icon entry-config" viewBox="0 0 24 24">

View File

@ -103,7 +103,7 @@ const UI = {
entry, entry,
entryClassBase: entry.className, entryClassBase: entry.className,
checker: $('.entry-state-toggle', entry) || {}, checker: $('.entry-state-toggle', entry) || {},
nameLink: $('a.entry-name', entry), nameLink: $('.entry-name', entry),
editLink: $('.entry-edit', entry) || {}, editLink: $('.entry-edit', entry) || {},
editHrefBase: 'edit.html?id=', editHrefBase: 'edit.html?id=',
appliesTo: $('.entry-applies-to', entry), appliesTo: $('.entry-applies-to', entry),
@ -120,7 +120,7 @@ const UI = {
parts.checker.checked = style.enabled; 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; parts.nameLink.href = parts.editLink.href = parts.editHrefBase + style.id;
// clear the code to free up some memory // clear the code to free up some memory