Added more info to refresh failure dialog.

This commit is contained in:
neviyn 2016-05-23 16:54:43 +01:00
parent 27cda72609
commit 13988566a8

View File

@ -140,9 +140,9 @@ $("#api-refresh").click (e) ->
$("#api-refresh").attr('data-original-title', "Last API Refresh:<br>" + retData.last_refresh + "<br>Click to refresh"); $("#api-refresh").attr('data-original-title', "Last API Refresh:<br>" + retData.last_refresh + "<br>Click to refresh");
$('#success-area').show(); $('#success-area').show();
).fail(() -> ).fail((xhr, textStatus) ->
$('#error-area').show(); $('#error-area').show();
$('#error-text').text("Cannot refresh API. Try again later.") $('#error-text').text("Cannot refresh API. Try again later. " + textStatus)
$("#api-refresh").find('img').removeClass('glyphicon-spin'); $("#api-refresh").find('img').removeClass('glyphicon-spin');
); );