Skip to content

Commit 0dbbc11

Browse files
committed
#1491 [RiskAssessmentDocument] fix: regen min css and js and clean js
1 parent 09f015c commit 0dbbc11

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

css/digiriskdolibarr.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/digiriskdolibarr.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/modules/document.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ window.digiriskdolibarr.document.generateDocument = async function (generationUr
8787
$('.loader').html('<i class="fas fa-check" style="color: green"></i>')
8888

8989
const digiriskElementText = $(data).find('.refid').text()
90-
const digiriskElementRef = digiriskElementText.split(/Description|Projet/)[0].trim();
91-
const documentName = $(data).find('#builddoc_form').find('.documentdownload').first().text()
92-
const textToShow = documentGeneratedText + ' : ' + digiriskElementRef + ' => ' + documentName
93-
window.digiriskdolibarr.document.scrollToBottom();
90+
const digiriskElementRef = digiriskElementText.split(/Description|Projet/)[0].trim()
91+
const documentName = $(data).find('#builddoc_form').find('.documentdownload').first().text()
92+
const textToShow = documentGeneratedText + ' : ' + digiriskElementRef + ' => ' + documentName
93+
window.digiriskdolibarr.document.scrollToBottom()
9494
window.digiriskdolibarr.document.updateModal(textToShow)
9595
return data
9696
});

0 commit comments

Comments
 (0)