frksteenhoff / ClimApp

Codebase for prototype and final version of the smartphone application ClimApp, a project under the European Research Area for Climate Services. The application is available for iOS and Android in App Stroe and Google Play respectively.
https://www.lth.se/climapp/
4 stars 2 forks source link

.done() not always reached #128

Closed BorisKingma closed 4 years ago

BorisKingma commented 5 years ago

Describe the bug $.get(url, user_data).done(function(data, status, xhr), or likewise with post. the .done is not always reached.

I would prefer $get(url, user_data, function(params){} ) or otherwise also implement .always() or .fail() This is required to be able to inform the user why something is not happening (e.g. no internet, no connection, no response from weather, no response from dtu, etc.)

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.