diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index 63d14aa1..86c0a87c 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -193,15 +193,20 @@ Ox.Request = function(options) { }; } } - if (data.status.code == 200 || data.status.code == 404) { - // we have to include 404 so we can - // test for the existence of things + if ( + data.status.code == 200 + || data.status.code == 404 + || data.status.code == 409 + ) { + // we have to include not found and conflict + // so that handlers can handle these cases cache[req] = { data: data, time: Ox.getTime() }; callback(data); - } else if (data.status.code >= 400 && data.status.code < 500) { + } else if (data.status.code == 401 || data.status.code == 403) { + // unauthorized or forbidden var $dialog = Ox.Dialog({ buttons: [ Ox.Button({ diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 38049e0e..16bf871b 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -1377,7 +1377,7 @@ Ox.List = function(options, self) { bValue = sort[b.id], ret = 0 if (aValue < bValue) { - ret = operator == '+' ? -1 : 1 + ret = operator == '+' ? -1 : 1; } else if (aValue > bValue) { ret = operator == '+' ? 1 : -1; }