Skip to content

Commit

Permalink
restore size and drop error when resize image fails
Browse files Browse the repository at this point in the history
fixes #1337
  • Loading branch information
gordonwoodhull committed Feb 22, 2015
1 parent ed26e83 commit 85a835e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Expand Up @@ -61,6 +61,9 @@

* Fix bug where asset would still be shown if current asset is deleted (#1343)

* Restore previous size and do not report (harmless) error when plot is resized too
small (#1337)


## RCloud 1.3

Expand Down
4 changes: 4 additions & 0 deletions htdocs/js/rcloud_bundle.js
Expand Up @@ -5608,6 +5608,10 @@ RCloud.UI.image_manager = (function() {
rcloud.plots.render(device, page, {dim: dims})
.then(function(data) {
result.update(data.url, dims);
})
.catch(function(err) {
if(!/Error in replayPlot/.test(err.message))
throw err;
});
}
function save_button() {
Expand Down
6 changes: 3 additions & 3 deletions htdocs/js/rcloud_bundle.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions htdocs/js/ui/image_manager.js
Expand Up @@ -58,6 +58,10 @@ RCloud.UI.image_manager = (function() {
rcloud.plots.render(device, page, {dim: dims})
.then(function(data) {
result.update(data.url, dims);
})
.catch(function(err) {
if(!/Error in replayPlot/.test(err.message))
throw err;
});
}
function save_button() {
Expand Down

0 comments on commit 85a835e

Please sign in to comment.