public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.js
Function updateActivityState
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateActivityState: function (currentTarget) {
let params = {
module: 'Calendar',
action: 'ActivityStateAjax',
record: currentTarget.data('id'),
Function registerActivityState
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerActivityState() {
const self = this;
$('.js-activity-buttons button:not(.close)').on('click', function (e) {
let currentTarget = $(e.currentTarget),
viewName = app.getViewName();