Refactor var to let/const or this

This commit is contained in:
Vasiliy Halimonchuk
2019-05-30 09:05:16 +03:00
parent b530e19a44
commit fe0fb3a251
32 changed files with 880 additions and 882 deletions

View File

@@ -24,9 +24,9 @@
<script>
'use strict';
var hashes = new URI().getData('hashes').split('|');
var setUpLimit = function() {
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
const hashes = new URI().getData('hashes').split('|');
const setUpLimit = function() {
const limit = $("uplimitUpdatevalue").value.toInt() * 1024;
if (hashes[0] == "global") {
new Request({
url: 'api/v2/transfer/setUploadLimit',