mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
Add class name to generate docx button [SCI-5722]
This commit is contained in:
parent
8f228d866d
commit
ff5d8571a3
|
@ -89,7 +89,7 @@
|
||||||
${I18n.t('projects.reports.index.docx')}
|
${I18n.t('projects.reports.index.docx')}
|
||||||
</a>`;
|
</a>`;
|
||||||
}
|
}
|
||||||
return `<a href="#" class="generate-docx">${I18n.t('projects.reports.index.generate')}</a>`;
|
return `<a href="#" class="generate-docx docx">${I18n.t('projects.reports.index.generate')}</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderPdfFile(data) {
|
function renderPdfFile(data) {
|
||||||
|
@ -192,7 +192,6 @@
|
||||||
|
|
||||||
function checkProcessingStatus(reportId) {
|
function checkProcessingStatus(reportId) {
|
||||||
let $row = $('#reports-table').find(`tr[data-id="${reportId}"]`);
|
let $row = $('#reports-table').find(`tr[data-id="${reportId}"]`);
|
||||||
|
|
||||||
if ($row.length === 0) return;
|
if ($row.length === 0) return;
|
||||||
|
|
||||||
$.getJSON($row.data('status-path'), (statusData) => {
|
$.getJSON($row.data('status-path'), (statusData) => {
|
||||||
|
@ -275,7 +274,6 @@
|
||||||
animateSpinner(null, false);
|
animateSpinner(null, false);
|
||||||
HelperModule.flashAlertMsg(response.message, 'success');
|
HelperModule.flashAlertMsg(response.message, 'success');
|
||||||
checkProcessingStatus(row.data('id'));
|
checkProcessingStatus(row.data('id'));
|
||||||
reloadTable();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue