fix style nits
This commit is contained in:
parent
7cd1e2c73b
commit
b30ac36ffa
@ -14,7 +14,7 @@ window.handleRedeemResponse = function(data, textStatus, jqXHR) {
|
||||
} else {
|
||||
error = 'There was a problem redeeming the passcode. Try again?';
|
||||
}
|
||||
alert('<strong>' + data.error + "</strong>\n" + error);
|
||||
alert('<strong>' + data.error + '</strong>\n' + error);
|
||||
} else if (data.result) {
|
||||
var xmp_level = 0, xmp_count = 0;
|
||||
var res_level = 0, res_count = 0;
|
||||
@ -40,7 +40,7 @@ window.handleRedeemResponse = function(data, textStatus, jqXHR) {
|
||||
}
|
||||
}
|
||||
|
||||
alert("<strong>Passcode accepted!</strong>\n" + [data.result.apAward + 'AP', data.result.xmAward + 'XM', xmp_count + 'xL' + xmp_level + ' XMP', res_count + 'xL' + res_level + ' RES', shield_count + 'x' + shield_rarity + ' SH'].join('/'));
|
||||
alert('<strong>Passcode accepted!</strong>\n' + [data.result.apAward + 'AP', data.result.xmAward + 'XM', xmp_count + 'xL' + xmp_level + ' XMP', res_count + 'xL' + res_level + ' RES', shield_count + 'x' + shield_rarity + ' SH'].join('/'));
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,13 +53,13 @@ window.setupRedeem = function() {
|
||||
var extra = '';
|
||||
if (response && response.status) {
|
||||
if (response.status === 429) {
|
||||
extra = "You have been rate-limited by the server. Wait a bit and try again.";
|
||||
extra = 'You have been rate-limited by the server. Wait a bit and try again.';
|
||||
} else {
|
||||
extra = "The server indicated an error.";
|
||||
extra = 'The server indicated an error.';
|
||||
}
|
||||
extra += "\n" + 'Response: HTTP <a href="http://httpstatus.es/' + response.status + '" alt="HTTP ' + response.status + '"target="_blank">' + response.status + "</a>.";
|
||||
extra += '\nResponse: HTTP <a href="http://httpstatus.es/' + response.status + '" alt="HTTP ' + response.status + '">' + response.status + '</a>.';
|
||||
} else {
|
||||
extra = "No status code was returned.";
|
||||
extra = 'No status code was returned.';
|
||||
}
|
||||
alert('<strong>The HTTP request failed.</strong> ' + extra);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user