Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 11 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | function filesDownloadAll(title, event, yiiDownloadAllLink) { |
||
2 | obj = $(event.target).parents('div.files-block'); |
||
|
|||
3 | hashes = ""; |
||
4 | $.each(obj.find('.f12-file-object'), function (key, val) { |
||
5 | hashes += "&hash[]=" + $(val).data('hash'); |
||
6 | }); |
||
7 | console.log(hashes); |
||
8 | |||
9 | window.open(yiiDownloadAllLink + "?title=" + title + hashes); |
||
10 | |||
11 | } |