diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js index e09c2dbc9c0234465d57811f0a1daedd4b85e9a5..fe305341201e890b1163ee209978efca9a27fd90 100644 --- a/plugins/CoreHome/javascripts/broadcast.js +++ b/plugins/CoreHome/javascripts/broadcast.js @@ -432,7 +432,15 @@ var broadcast = { */ customAjaxHandleError: function (deferred, status) { broadcast.lastUrlRequested = null; - piwikHelper.ajaxHandleError(deferred, status); + + // do not display error message if request was aborted + if(status == 'abort') { + return; + } + $('#loadingError').show(); + setTimeout( function(){ + $('#loadingError').fadeOut('slow'); + }, 2000); }, /** diff --git a/plugins/Zeitgeist/javascripts/piwikHelper.js b/plugins/Zeitgeist/javascripts/piwikHelper.js index 385984a72a3429264d2c6f24e1c00fef9c1f4ebd..f08f2c0d8665530c1faf66b121482134c02b5d02 100644 --- a/plugins/Zeitgeist/javascripts/piwikHelper.js +++ b/plugins/Zeitgeist/javascripts/piwikHelper.js @@ -269,26 +269,6 @@ var piwikHelper = { window.location = url; }, - /** - * Method to handle ajax errors - * @param {XMLHttpRequest} deferred - * @param {string} status - * @return {void} - * @deprecated sine 1.9.3 - will be removed in 2.0 - * @see use ajaxHelper for ajax requests - */ - ajaxHandleError: function(deferred, status) - { - // do not display error message if request was aborted - if(status == 'abort') { - return; - } - $('#loadingError').show(); - setTimeout( function(){ - $('#loadingError').fadeOut('slow'); - }, 2000); - }, - /** * Scrolls the window to the jquery element 'elem' * if the top of the element is not currently visible on screen