Skip to content

Commit

Permalink
#2908 [Risk] add: loader on shared risks list after sharing risks action
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed Jan 10, 2023
1 parent 948565c commit d2eb901
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions js/digiriskdolibarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,7 @@ window.eoxiaJS.risk.event = function() {
$( document ).on( 'click', '.risk-create:not(.button-disable)', window.eoxiaJS.risk.createRisk );
$( document ).on( 'click', '.risk-save', window.eoxiaJS.risk.saveRisk );
$( document ).on( 'click', '.risk-unlink-shared', window.eoxiaJS.risk.unlinkSharedRisk );
$( document ).on( 'click', 'div[aria-describedby="dialog-confirm-actionButtonImportSharedRisks"] .ui-button.ui-corner-all.ui-widget', window.eoxiaJS.risk.sharedRiskBoxLoader );
};

/**
Expand Down Expand Up @@ -2055,6 +2056,18 @@ window.eoxiaJS.risk.unlinkSharedRisk = function ( event ) {
});
};

/**
* Action loader shared risk box.
*
* @since 9.2.0
* @version 9.2.0
*
* @return {void}
*/
window.eoxiaJS.risk.sharedRiskBoxLoader = function ( event ) {
window.eoxiaJS.loader.display($('#searchFormSharedListRisks'))
};

/**
* Initialise l'objet "evaluation" ainsi que la méthode "init" obligatoire pour la bibliothèque EoxiaJS.
*
Expand Down

0 comments on commit d2eb901

Please sign in to comment.