| Total Complexity | 2 |
| Complexity/F | 2 |
| Lines of Code | 17 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import NodeForm from './NodeForm'; |
||
| 2 | |||
| 3 | class CustomForm extends NodeForm { |
||
| 4 | /** |
||
| 5 | * @param {string} formID id of the respective form element |
||
| 6 | * |
||
| 7 | * @return {void} |
||
| 8 | */ |
||
| 9 | constructor(formID) { |
||
| 10 | super(); |
||
| 11 | |||
| 12 | this.$form = jQuery(`#${formID}`); |
||
| 13 | this.$form.find('[name="cancel-button"]').on('click', this.hide.bind(this)); |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 17 | export default CustomForm; |
||
| 18 |