diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-27 15:30:29 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-27 15:36:22 +0200 |
| commit | 58cfe6691d8d479c55e46d9bc6c938e0ade5bf75 (patch) | |
| tree | 4ba8e63bda2b7621df3cd505cfd552479dca9852 /js/pomf.js | |
| parent | 82d03a593aa0861a49b2d3964af1c10f39b153ac (diff) | |
Remove misleading comment and simplify pomf.js case 413
There appears to be no such thing as a terrible scary bug that needs a
workaround in my Chromium 45.0.2454.85 browser to encode …. The
unobvious self-closing <div/> is also very questionable.
For what it's worth, … will encode correctly as long as you use
jQuery's .html() method – which it already did anyway.
OK ewhal@
Diffstat (limited to 'js/pomf.js')
| -rw-r--r-- | js/pomf.js | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -160,10 +160,7 @@ $(function() { break; case 413: uploadFiles.addClass('error completed'); - // Terrible work-around, but necessary since otherwise the '…' - // entity is left decoded. - totalName.html($('<div/>').html('onii-chan, y-your upload is t-too ' + - 'big…').text()); + totalName.html('onii-chan, y-your upload is t-too big…'); break; default: uploadFiles.addClass('error completed'); |
