summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-27 15:30:29 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-27 15:36:22 +0200
commit58cfe6691d8d479c55e46d9bc6c938e0ade5bf75 (patch)
tree4ba8e63bda2b7621df3cd505cfd552479dca9852
parent82d03a593aa0861a49b2d3964af1c10f39b153ac (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 &hellip;. The unobvious self-closing <div/> is also very questionable. For what it's worth, &hellip; will encode correctly as long as you use jQuery's .html() method – which it already did anyway. OK ewhal@
-rw-r--r--js/pomf.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/pomf.js b/js/pomf.js
index c3f52bc..2cea939 100644
--- a/js/pomf.js
+++ b/js/pomf.js
@@ -160,10 +160,7 @@ $(function() {
break;
case 413:
uploadFiles.addClass('error completed');
- // Terrible work-around, but necessary since otherwise the '&hellip;'
- // entity is left decoded.
- totalName.html($('<div/>').html('onii-chan, y-your upload is t-too ' +
- 'big&hellip;').text());
+ totalName.html('onii-chan, y-your upload is t-too big&hellip;');
break;
default:
uploadFiles.addClass('error completed');