Total Complexity | 7 |
Complexity/F | 1.17 |
Lines of Code | 27 |
Function Count | 6 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | jaxon.dialogs.jalert = { |
||
2 | success: (content, title = 'Success') => $.jAlert({content: content, title: title, theme: 'green'}), |
||
3 | info: (content, title = 'Information') => $.jAlert({content: content, title: title, theme: 'blue'}), |
||
4 | warning: (content, title = 'Warning') => $.jAlert({content: content, title: title, theme: 'yellow'}), |
||
5 | error: (content, title = 'Error') => $.jAlert({content: content, title: title, theme: 'red'}), |
||
6 | confirm: (question, title, yesCallback, noCallback) => $.jAlert({ |
||
7 | title: title, |
||
8 | type: "confirm", |
||
9 | confirmQuestion: question, |
||
10 | confirmBtnText: "<?php echo $this->yes ?>", |
||
11 | denyBtnText: "<?php echo $this->no ?>", |
||
12 | onConfirm: yesCallback, |
||
13 | onDeny: noCallback ?? (() => {}), |
||
14 | }), |
||
15 | }; |
||
16 |