summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakefeasel <jfeasel@gmail.com>2015-05-04 12:02:42 -0700
committerjakefeasel <jfeasel@gmail.com>2015-05-04 12:02:42 -0700
commit8b38112003b65964dca10c425b127f21edb33c0e (patch)
tree8c94fd28281fcbb02f73b7d35ff382142b9fc1cc
parent3cb35eface41a8d0111fd60fdee0cc0f92601283 (diff)
downloadsqlfiddle2-8b38112003b65964dca10c425b127f21edb33c0e.zip
sqlfiddle2-8b38112003b65964dca10c425b127f21edb33c0e.tar.gz
sqlfiddle2-8b38112003b65964dca10c425b127f21edb33c0e.tar.bz2
Prevents the 'Oops' pop-up from appearing when the problem is just a too-large request
-rw-r--r--src/main/resources/ui/sqlfiddle/www/javascript/fiddle_backbone/models/OpenIDMResource.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/resources/ui/sqlfiddle/www/javascript/fiddle_backbone/models/OpenIDMResource.js b/src/main/resources/ui/sqlfiddle/www/javascript/fiddle_backbone/models/OpenIDMResource.js
index 7ca9958..28ac067 100644
--- a/src/main/resources/ui/sqlfiddle/www/javascript/fiddle_backbone/models/OpenIDMResource.js
+++ b/src/main/resources/ui/sqlfiddle/www/javascript/fiddle_backbone/models/OpenIDMResource.js
@@ -19,8 +19,10 @@ define(["jquery"], function ($) {
}),
dataType: "json",
data: args.data
- }).fail(function () {
- alert("Oops! Something went wrong. Try it again and if this keeps happening, email admin@sqlfiddle.com about it.");
+ }).fail(function (jqXHR, textStatus, errorThrown) {
+ if (jqXHR.status !== 413) {
+ alert("Oops! Something went wrong. Try it again and if this keeps happening, email admin@sqlfiddle.com about it.");
+ }
});
}
};