1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-01 19:45:24 +02:00

Allow doc/section/files links to open in tabs

Closes #233 and might help #236
This commit is contained in:
sauls8t 2019-04-10 20:03:34 +01:00
parent 92696c5181
commit 9e3eac19aa
12 changed files with 886 additions and 743 deletions

View file

@ -35,6 +35,16 @@ export default Service.extend(Notifier, {
});
},
// Returns link URL for specified link.
fetchLinkUrl(linkId) {
return this.get('ajax').request(`link/${linkId}`, {
method: 'GET',
dataType: 'text'
}).then((response) => {
return response;
});
},
// Returns keyword-based candidates
searchCandidates(keywords) {
let url = "links?keywords=" + encodeURIComponent(keywords);