Issues (183)

assets/yii2-floor12-files-block.js (4 issues)

1
function filesDownloadAll(title, event, yiiDownloadAllLink) {
2
    obj = $(event.target).parents('div.files-block');
0 ignored issues
show
The variable obj seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.obj.
Loading history...
3
    hashes = "";
0 ignored issues
show
The variable hashes seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.hashes.
Loading history...
4
    $.each(obj.find('.f12-file-object'), function (key, val) {
5
        hashes += "&hash[]=" + $(val).data('hash');
0 ignored issues
show
The variable hashes seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.hashes.
Loading history...
6
    });
7
    console.log(hashes);
0 ignored issues
show
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
8
9
    window.open(yiiDownloadAllLink + "?title=" + title + hashes);
10
11
}