From 3605c0d2ac687d5b56994608b130cb6f8e1c9187 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 27 Oct 2011 21:15:51 +0000 Subject: [PATCH] don't throw error dialogs on 404 --- source/Ox.UI/js/Core/Ox.Request.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index 4032cc74..14f25b98 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -192,7 +192,9 @@ Ox.Request = function(options) { }; } } - if (data.status.code == 200) { + if (data.status.code == 200 || data.status.code == 404) { + // we have to include 404 so we can + // test for the existence of things cache[req] = { data: data, time: Ox.getTime()