Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
Fixed erroneous error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Hughes committed Dec 10, 2011
1 parent f76418b commit 6417294
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrumdo-web/media/js/iteration.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ function loadIteration(iterationID, page, query_string)
if (last_load_iter_req)
{
// A load request is already pending, so stop it to avoid double loads.
last_load_iter_req.onreadystatechange = null;
last_load_iter_req.aborted = true;
AJAX_CALL_ABORTED = true;
last_load_iter_req.abort();
}

Expand Down
8 changes: 8 additions & 0 deletions scrumdo-web/media/js/scrumdo.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,16 @@ function setupNewsItemMoreLinks() {

}

var AJAX_CALL_ABORTED = false;
function onAjaxError(request, status, error) {
var errorMsg = "";

if( AJAX_CALL_ABORTED )
{
AJAX_CALL_ABORTED = false;
return;
}

if(request.responseText) {
errorMsg = request.responseText.substr(0,100);
}
Expand Down

0 comments on commit 6417294

Please sign in to comment.