Rev 1289 | Rev 1349 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1289 | Rev 1292 | ||
---|---|---|---|
Line 216... | Line 216... | ||
216 | if (errorThrown == "abort") return; |
216 | if (errorThrown == "abort") return; |
217 | alertError(_L("Failed to load content: %1",errorThrown)); |
217 | alertError(_L("Failed to load content: %1",errorThrown)); |
218 | console.error(_L("Error: %1",errorThrown)); |
218 | console.error(_L("Error: %1",errorThrown)); |
219 | }, |
219 | }, |
220 | success:function(data) { |
220 | success:function(data) { |
- | 221 | // TODO: Use oidplus_ajax_success(), since this checks the existance of "error" in data, and checks if status>=0 |
|
221 | if ("error" in data) { |
222 | if ("error" in data) { |
222 | alertError(_L("Failed to load content: %1",data.error)); |
223 | alertError(_L("Failed to load content: %1",data.error)); |
223 | console.error(data.error); |
224 | console.error(data.error); |
224 | } else if (data.status >= 0) { |
225 | } else if (data.status >= 0) { |
225 | data.id = id; |
226 | data.id = id; |