- Description:
Handles edit penalty form.
- Source:
- Copyright:
- 2024 Catalyst IT
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Handles edit penalty form.
Classes
Members
(static, constant) init
- Description:
Initialize the js.
- Source:
Initialize the js.
(inner, constant) SELECTORS
- Description:
Selectors
- Source:
Selectors
Methods
(inner) buildFormParams() → {Object}
- Description:
Build form parameters for loading fragment.
- Source:
Returns:
form params
- Type
- Object
(inner) deleteRule(target)
- Description:
Delete a rule group represented by thenode.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
NodeElement |
(inner) getRuleNumber(target) → {Number}
- Description:
Get the rule number from the target.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
Object |
Returns:
rule number
- Type
- Number
(inner) insertRule(target)
- Description:
Insert a rule group below the clicked button.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
NodeElement |
(inner) insertRuleAtIndex(ruleNumber)
- Description:
Add a new rule group at the specified index.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ruleNumber |
Number |
(inner) loadPenaltyRuleForm(contextId, penaltyRules, finalPenaltyRule)
- Description:
Load the penalty rule form.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
contextId |
Number | |
penaltyRules |
Array | |
finalPenaltyRule |
Number |
(inner) registerEventListeners()
- Description:
Register click event for delete and insert buttons.
- Source: