manage: hardcode edit link; fixes #29 broken in 7084dd12

This commit is contained in:
tophf 2017-06-18 15:46:53 +03:00
parent 3128c7f063
commit 8e4b2fbbb0
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
<template data-id="style">
<div class="entry">
<h2 class="style-name">
<a class="style-name-link" href="edit.html?id="></a>
<a class="style-name-link"></a>
<a target="_blank" class="homepage"></a>
</h2>
<p class="applies-to">
@ -25,7 +25,7 @@
<span class="targets"></span>
</p>
<p class="actions">
<a class="style-edit-link" href="edit.html?id=">
<a class="style-edit-link">
<button i18n-text="editStyleLabel"></button>
</a>
<button class="enable" i18n-text="enableStyleLabel"></button>
@ -42,7 +42,7 @@
<div class="entry">
<h2 class="style-name">
<input class="checker" type="checkbox" i18n-title="toggleStyle">
<a class="style-name-link" href="edit.html?id="></a>
<a class="style-name-link"></a>
</h2>
<p class="actions">
<a target="_blank" class="homepage"></a>

View File

@ -155,7 +155,7 @@ function createStyleElement({style, name}) {
checker: $('.checker', entry) || {},
nameLink: $('.style-name-link', entry),
editLink: $('.style-edit-link', entry) || {},
editHrefBase: $('.style-name-link', entry).getAttribute('href'),
editHrefBase: 'edit.html?id=',
homepage: $('.homepage', entry),
homepageIcon: template[`homepageIcon${newUI.enabled ? 'Small' : 'Big'}`],
appliesTo: $('.applies-to', entry),