Also reset "otherRequestInProgress" if the request fails

This commit is contained in:
Gina Häußge committed 2014-08-06 12:15:02 +02:00
1 parent 3eab5503f1
commit 488eb1fac3
1 file changed
+3
@@ -118,6 +118,9 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) {
success: function(response) {
self.fromResponse(response, filenameToFocus, locationToFocus);
self._otherRequestInProgress = false;
},
error: function() {
self._otherRequestInProgress = false;
}
});
};