aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-02-08 17:42:16 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-02-08 17:42:16 +0100
commit014f0e235e22b304cc6d8e7b98363af23f52aa4c (patch)
tree10e85f4044b02ea0612cdaf5c8adad3d2c562973
parent9e32b6710276aa0b187b4ee388fcd9b99ded7262 (diff)
downloadsonarqube-014f0e235e22b304cc6d8e7b98363af23f52aa4c.tar.gz
sonarqube-014f0e235e22b304cc6d8e7b98363af23f52aa4c.zip
Replace deprecated error() and complete() functions by fail() and done()
-rw-r--r--sonar-server/src/main/webapp/javascripts/application.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js
index e98b9024637..e78de834513 100644
--- a/sonar-server/src/main/webapp/javascripts/application.js
+++ b/sonar-server/src/main/webapp/javascripts/application.js
@@ -374,9 +374,9 @@ function openAccordionItem(url, elt, updateCurrentElement) {
$j("#accordion-panel").append(html);
$j("#accordion-panel").height('auto');
}
- }).error(function (event, jqxhr, settings, exception) {
- alert("Server error. Please contact your administrator. The message is : "+ event.responseText);
- }).complete(function () {
+ }).fail(function (jqXHR, textStatus) {
+ alert("Server error. Please contact your administrator. The status of the error is : "+ jqXHR.status);
+ }).done(function () {
loading.remove();
});