Jeremy Schomery 2017-03-11 12:41:38 +03:30
parent 616a2517f5
commit 2da4a8708c
2 changed files with 14 additions and 10 deletions

View File

@ -53,6 +53,10 @@ function tNodeList(nodes) {
case "text": case "text":
node.insertBefore(document.createTextNode(value), node.firstChild); node.insertBefore(document.createTextNode(value), node.firstChild);
break; break;
case "tooltip": {
node.setAttribute('title', value);
break;
}
case "html": case "html":
node.insertAdjacentHTML("afterbegin", value); node.insertAdjacentHTML("afterbegin", value);
break; break;

View File

@ -14,16 +14,16 @@
<div class="actions"> <div class="actions">
<a href="#" class="enable" i18n-text="enableStyleLabel"></a> <a href="#" class="enable" i18n-text="enableStyleLabel"></a>
<a href="#" class="disable" i18n-text="disableStyleLabel"></a> <a href="#" class="disable" i18n-text="disableStyleLabel"></a>
<a class="style-edit-link" href="edit.html?id="> <a class="style-edit-link" href="edit.html?id=" i18n-tooltip="editStyleLabel">
<svg class="svg-icon" viewBox="0 0 14 16"> <svg class="svg-icon" viewBox="0 0 14 16">
<path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"></path> <path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"></path>
</svg> </svg>
</a> </a>
<a href="#" class="delete"> <a href="#" class="delete" i18n-tooltip="deleteStyleLabel">
<svg class="svg-icon" viewBox="0 0 14 16"> <svg class="svg-icon" viewBox="0 0 14 16">
<path fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"></path> <path fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"></path>
</svg> </svg>
</a> </a>
</div> </div>
</div> </div>
</div> </div>