summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMark Macdonald2013-06-19 19:49:42 (EDT)
committer skaegi2013-06-20 12:47:49 (EDT)
commit73415137b0df16df2e9a05371c5cf36d355d9ade (patch)
treeab8ad0eb957d014ec474e3aa25d4b3037805d025
parent7a19f3e3ffa82117bfd020a36735a76796ff2717 (diff)
downloadorg.eclipse.orion.client-73415137b0df16df2e9a05371c5cf36d355d9ade.zip
org.eclipse.orion.client-73415137b0df16df2e9a05371c5cf36d355d9ade.tar.gz
org.eclipse.orion.client-73415137b0df16df2e9a05371c5cf36d355d9ade.tar.bz2
[Bug 411193] Navigator doesn't refresh after creating initial content in HTML5 file system
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer-table.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer-table.js b/bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer-table.js
index 8b380eb..4418326 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer-table.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer-table.js
@@ -244,11 +244,7 @@ define(['i18n!orion/navigate/nls/messages', 'require', 'orion/Deferred', 'orion/
},
"import": function(modelEvent) { //$NON-NLS-0$
var target = modelEvent.target;
- if (this.treeRoot.Location === target.Location) {
- this.loadResourceList(this.treeRoot, true);
- } else {
- this.changedItem(target, true);
- }
+ this.changedItem(target, true);
},
move: function(modelEvent) {
var item = modelEvent.oldValue, newItem = modelEvent.newValue, parent = modelEvent.parent;
@@ -436,6 +432,9 @@ define(['i18n!orion/navigate/nls/messages', 'require', 'orion/Deferred', 'orion/
* @returns {orion.Promise}
*/
FileExplorer.prototype.changedItem = function(parent, forceExpand) {
+ if (parent === this.treeRoot) {
+ return this.loadResourceList(this.treeRoot, forceExpand);
+ }
var that = this;
var progress = this.registry.getService("orion.page.progress");
return progress.progress(this.fileClient.fetchChildren(parent.ChildrenLocation), "Fetching children of " + parent.Name).then(function(children) {