mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
Fetching Jira issues
This commit is contained in:
parent
7878a244d3
commit
0f9602e3a0
8 changed files with 196 additions and 334 deletions
|
@ -48,6 +48,20 @@ export default BaseService.extend({
|
|||
});
|
||||
},
|
||||
|
||||
// Requests data from the specified section handler, passing the method and document ID
|
||||
// and POST payload.
|
||||
fetchText(page, method, data) {
|
||||
let documentId = page.get('documentId');
|
||||
let section = page.get('contentType');
|
||||
let url = `sections?documentID=${documentId}§ion=${section}&method=${method}`;
|
||||
|
||||
return this.get('ajax').post(url, {
|
||||
data: JSON.stringify(data),
|
||||
contentType: "application/json",
|
||||
dataType: "html"
|
||||
});
|
||||
},
|
||||
|
||||
// Did any dynamic sections change? Fetch and send up for rendering?
|
||||
refresh(documentId) {
|
||||
let url = `sections/refresh?documentID=${documentId}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue