mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 23:55:59 +08:00
changed shared_info class names to avoid conflict with adblocker, closes #2546
This commit is contained in:
parent
8240a208dd
commit
77c6c4617b
|
@ -13,7 +13,7 @@ const TPL = `
|
|||
}
|
||||
</style>
|
||||
|
||||
<span class="share-text"></span> <a class="share-link external"></a>. For help visit <a href="https://github.com/zadam/trilium/wiki/Sharing">wiki</a>.
|
||||
<span class="shared-text"></span> <a class="shared-link external"></a>. For help visit <a href="https://github.com/zadam/trilium/wiki/Sharing">wiki</a>.
|
||||
</div>`;
|
||||
|
||||
export default class SharedInfoWidget extends NoteContextAwareWidget {
|
||||
|
@ -23,8 +23,8 @@ export default class SharedInfoWidget extends NoteContextAwareWidget {
|
|||
|
||||
doRender() {
|
||||
this.$widget = $(TPL);
|
||||
this.$shareLink = this.$widget.find(".share-link");
|
||||
this.$shareText = this.$widget.find(".share-text");
|
||||
this.$sharedLink = this.$widget.find(".shared-link");
|
||||
this.$sharedText = this.$widget.find(".shared-text");
|
||||
this.contentSized();
|
||||
}
|
||||
|
||||
|
@ -36,14 +36,14 @@ export default class SharedInfoWidget extends NoteContextAwareWidget {
|
|||
|
||||
if (syncServerHost) {
|
||||
link = syncServerHost + "/share/" + shareId;
|
||||
this.$shareText.text("This note is shared publicly on");
|
||||
this.$sharedText.text("This note is shared publicly on");
|
||||
}
|
||||
else {
|
||||
link = location.protocol + '//' + location.host + location.pathname + "share/" + shareId;
|
||||
this.$shareText.text("This note is shared locally on");
|
||||
this.$sharedText.text("This note is shared locally on");
|
||||
}
|
||||
|
||||
this.$shareLink.attr("href", link).text(link);
|
||||
this.$sharedLink.attr("href", link).text(link);
|
||||
}
|
||||
|
||||
entitiesReloadedEvent({loadResults}) {
|
||||
|
|
Loading…
Reference in a new issue