Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions jquery.easytree.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,12 +945,17 @@
function ajaxService(actionUrl, json, callBack) {
$.ajax({
url: actionUrl,
type: "POST",
type: (json == null) ? "GET" : "POST",
contentType: "application/json; charset=utf-8",
data: json,
success: callBack,
error: function (jqXHR, textStatus, errorThrown) {
alert("Error: " + jqXHR.responseText);
// Don't display anything if the error is blank. This will happen
// if the AJAX request was cancelled due to navigating away to a new page
// which happens all the time on Firefox if it has not finished the AJAX request.
if (jqXHR.responseText != '') {
alert("Error: " + jqXHR.responseText);
}
}
});
}
Expand Down
Loading