Make entire style name clickable
This commit is contained in:
parent
bc3f2e0fcf
commit
0d87689078
|
@ -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">
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user