web/js/cabinet-bonus-text.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 7
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
eloc 5
c 1
b 0
f 0
nc 1
dl 0
loc 7
rs 10
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 1
1
$(document).ready(function () {
2
    $('#ref-dropdown').on('change', function () {
3
        var bonus = $('option:selected', this).data('bonus');
4
        var bonus_text = bonus_translate.replace('%referal_bonus%', bonus);
0 ignored issues
show
Bug introduced by
The variable bonus_translate seems to be never declared. If this is a global, consider adding a /** global: bonus_translate */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
5
        $('#bonus_text').text(bonus_text);
6
    });
7
})