fix style nits

This commit is contained in:
Stefan Breunig 2013-03-06 00:02:28 +01:00
parent 7cd1e2c73b
commit b30ac36ffa

View File

@ -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);
});