Also reset "otherRequestInProgress" if the request fails

This commit is contained in:
Gina Häußge 2014-08-06 12:15:02 +02:00
parent 3eab5503f1
commit 488eb1fac3

View file

@ -118,6 +118,9 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) {
success: function(response) {
self.fromResponse(response, filenameToFocus, locationToFocus);
self._otherRequestInProgress = false;
},
error: function() {
self._otherRequestInProgress = false;
}
});
};