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:
parent
92696c5181
commit
9e3eac19aa
12 changed files with 886 additions and 743 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue