Skip to content

Commit

Permalink
#1364 [Core] fix: compatibility with new module name
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed Jul 12, 2023
1 parent 7b04b27 commit 684f495
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion js/digiquali.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions js/modules/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ window.digiquali.control.init = function() {
*
* @return {void}
*/
window.dolismq.control.event = function() {
$( document ).on( 'click', '.answer:not(.disable)', window.dolismq.control.selectAnswer );
$( document ).on( 'input', '.input-answer:not(.disable)', window.dolismq.control.selectAnswer );
$( document ).on( 'keyup', '.question-comment', window.dolismq.control.writeComment );
$( document ).on( 'change', '.control-table.linked-objects select', window.dolismq.control.disableOtherSelectors );
$( document ).on( 'keyup', '.question-comment', window.dolismq.control.showCommentUnsaved );
$( document ).on( 'click', '.validateButton', window.dolismq.control.getAnswerCounter);
$( document ).on( 'change', '#fk_sheet', window.dolismq.control.showSelectObjectLinked);
$( document ).on( 'click', '.toggleControlInfo', window.dolismq.control.toggleControlInfo );
$( document ).on( 'click', '.clipboard-copy', window.dolismq.control.copyToClipboard );
window.digiquali.control.event = function() {
$( document ).on( 'click', '.answer:not(.disable)', window.digiquali.control.selectAnswer );
$( document ).on( 'input', '.input-answer:not(.disable)', window.digiquali.control.selectAnswer );
$( document ).on( 'keyup', '.question-comment', window.digiquali.control.writeComment );
$( document ).on( 'change', '.control-table.linked-objects select', window.digiquali.control.disableOtherSelectors );
$( document ).on( 'keyup', '.question-comment', window.digiquali.control.showCommentUnsaved );
$( document ).on( 'click', '.validateButton', window.digiquali.control.getAnswerCounter);
$( document ).on( 'change', '#fk_sheet', window.digiquali.control.showSelectObjectLinked);
$( document ).on( 'click', '.toggleControlInfo', window.digiquali.control.toggleControlInfo );
$( document ).on( 'click', '.clipboard-copy', window.digiquali.control.copyToClipboard );
};

/**
Expand Down Expand Up @@ -245,7 +245,7 @@ window.digiquali.control.toggleControlInfo = function ( event ) {
* @param {MouseEvent} event Les attributs lors du clic.
* @return {void}
*/
window.dolismq.control.copyToClipboard = function( event ) {
window.digiquali.control.copyToClipboard = function( event ) {
let copyText = $(".copy-to-clipboard").attr('value')
navigator.clipboard.writeText(copyText).then(() => {
$('.copy-to-clipboard-button').animate({
Expand Down
4 changes: 2 additions & 2 deletions view/control/control_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,8 @@
print ' <button class="copy-to-clipboard-button"><i class="fas fa-clipboard clipboard-copy"></i></button>';
print '<input hidden id="copyToClipboardTooltip" value="'. $langs->trans('CopiedToClipboard') .'">';
print '</td>';
print '<td>' . saturne_show_medias_linked('dolismq', $conf->dolismq->multidir_output[$conf->entity] . '/control/' . $object->ref . '/qrcode/', 'small', 1, 0, 0, 0, 80, 80, 0, 0, 0, 'control/'. $object->ref . '/qrcode/', $object, '', 0, 0) . '</td></tr>';
$publicControlInterfaceUrl = dol_buildpath('custom/dolismq/public/control/public_control.php?track_id=' . $object->track_id, 3);
print '<td>' . saturne_show_medias_linked('digiquali', $conf->digiquali->multidir_output[$conf->entity] . '/control/' . $object->ref . '/qrcode/', 'small', 1, 0, 0, 0, 80, 80, 0, 0, 0, 'control/'. $object->ref . '/qrcode/', $object, '', 0, 0) . '</td></tr>';
$publicControlInterfaceUrl = dol_buildpath('custom/digiquali/public/control/public_control.php?track_id=' . $object->track_id, 3);
}

include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_view.tpl.php';
Expand Down

0 comments on commit 684f495

Please sign in to comment.