Completed
Push — master ( 80fdf3...351fbc )
by Vladimir
02:43
created

assets/js/src/bans.js (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
const $ = require('jquery');
0 ignored issues
show
Backwards Compatibility introduced by
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Loading history...
2
require('jquery-depends-on');
3
4
module.exports = function() {
5
    var $expirationDate = $('#ban_expiration_date');
6
7
    if ($expirationDate.length) {
8
        $expirationDate.dependsOn({
9
            '#form_is_permanent': {
10
                checked: false
11
            }
12
        });
13
    }
14
};
15