Skip to content

Commit

Permalink
Changed successful code from 200 to 2xx
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Kadlec committed Apr 19, 2016
1 parent 063bcc9 commit d95a86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/l10nNetteTranslator/Templates/panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
request.onreadystatechange = function () {
if (request.readyState == 4) {
if (request.status == 200) {
if (request.status.toString().match(/2\d\d/)) {
var response = JSON.parse(request.responseText), key;

if (response.hasOwnProperty('message') && response.message) {
Expand Down

0 comments on commit d95a86e

Please sign in to comment.