Fixed refreshing of timelapse file list upon finished rendering of a new one

This commit is contained in:
Gina Häußge 2015-03-05 11:37:56 +01:00
parent 8a70b5cd7f
commit d665cc9538
3 changed files with 5 additions and 1 deletions

View file

@ -162,6 +162,7 @@
* Handling of files on the printer's SD card contained in folders now works correctly
* Don't display a "Disconnected" screen when trying to download a timelapse in Firefox
* Fixed handling of SD card files in folders
* Fixed refreshing of timelapse file list upon finished rendering of a new one
([Commits](https://github.com/foosel/OctoPrint/compare/master...devel))

View file

@ -176,7 +176,6 @@ function DataUpdater(allViewModels) {
new PNotify({title: gettext("Rendering timelapse"), text: _.sprintf(gettext("Now rendering timelapse %(movie_basename)s"), payload)});
} else if (type == "MovieDone") {
new PNotify({title: gettext("Timelapse ready"), text: _.sprintf(gettext("New timelapse %(movie_basename)s is done rendering."), payload)});
timelapseViewModel.requestData();
} else if (type == "MovieFailed") {
html = "<p>" + _.sprintf(gettext("Rendering of timelapse %(movie_basename)s failed with return code %(returncode)s"), payload) + "</p>";
html += pnotifyAdditionalInfo('<pre style="overflow: auto">' + payload.error + '</pre>');

View file

@ -174,6 +174,10 @@ $(function() {
self.requestData();
};
self.onEventMovieDone = function(payload) {
self.requestData();
};
self.onStartup = function() {
self.requestData();
};