diff options
| author | WubTheCaptain <wub@partyvan.eu> | 2015-09-19 17:40:40 +0200 |
|---|---|---|
| committer | WubTheCaptain <wub@partyvan.eu> | 2015-09-20 09:07:53 +0200 |
| commit | 556c60d9027d6da1dc373d50adede97ade86d61f (patch) | |
| tree | de5c18739d974dd524072d8240734a59764e533e /js | |
| parent | bc9ddfdf951cd03d3d00af10a082284c6c3ccb8f (diff) | |
Use singlequotes
Both Google and Node.js style guides prefer the use of ' over ". Much of
the rest of this code also uses singlequotes, so this brings the rest of
it to same level of consistency.
Diffstat (limited to 'js')
| -rw-r--r-- | js/pomf.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,7 +4,7 @@ $(function() { uploadBtn = $('#upload-btn'), uploadFiles = $('#upload-filelist'); - var btnContent = ""; + var btnContent = ''; if (!$.hasFileAPI()) { $('#no-file-api').show(); @@ -39,10 +39,10 @@ $(function() { var MAX_SIZE = (function(node) { var max = node.attr('data-max-size') || '120MiB'; var num = parseInt(/([0-9,]+).*/.exec(max)[1].replace(',', '')); - var unit = /(?:([KMGTPEZY])(i)?B|([BKMGTPEZY]))/.exec(max) || ["B", "", ""]; + var unit = /(?:([KMGTPEZY])(i)?B|([BKMGTPEZY]))/.exec(max) || ['B', '', '']; var oneUnit = Math.pow( - (unit[2] === "i" ? 1024 : 1000), + (unit[2] === 'i' ? 1024 : 1000), 'BKMGTPEZY'.indexOf(unit[1]) ); @@ -88,7 +88,7 @@ $(function() { return; } - var up = files.upload("upload.php"); + var up = files.upload('upload.php'); var eachRow = function(files, fn) { var hits = {}; @@ -127,7 +127,7 @@ $(function() { link.attr('href', file.url) .attr('target', '_BLANK') - .text(file.url.replace("http://", "").replace("https://", "")); + .text(file.url.replace('http://', '').replace('https://', '')); $('.file-url', row).append(link); }); |
