Permalink
Browse files

Set preview_seed on parent node when file is modified, should fix #1213

  • Loading branch information...
1 parent 7d0a0bf commit 3a3685611607837e1439e096fc67777b2bca6af7 @cdujeu cdujeu committed Oct 3, 2016
@@ -58,7 +58,7 @@ Class.create("PixlrEditor", AbstractEditor, {
}else if(this.editorOptions.context.__className == "AjxpTabulator"){
this.editorOptions.context.closeTab("editor.pixlr:/" + this.currentNode.getPath());
}
- pydio.getController().fireAction('refresh');
+ pydio.fireNodeRefresh(this.currentNode);
}.bind(this);
conn.sendAsync();
},
@@ -41,7 +41,8 @@ Class.create("ZohoEditor", AbstractEditor, {
conn.addParameter("get_action", "retrieve_from_zohoagent");
conn.onComplete = function(transport){
if(transport.responseText == "MODIFIED"){
- ajaxplorer.fireNodeRefresh(this.currentNode);// fireContextRefresh();
+ this.currentNode.getParent().getMetadata().set('preview_seed', Math.round(date.getTime()*Math.random()));
+ pydio.fireNodeRefresh(this.currentNode);
}
}.bind(this);
conn.sendAsync();

0 comments on commit 3a36856

Please sign in to comment.