Browse files

Add reload api

  • Loading branch information...
1 parent 020f586 commit 28b4a66dd0ea61cc1ad6b7411822970be906824f @titoBouzout committed Jun 10, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 chrome/js/api.js
View
17 chrome/js/api.js
@@ -112,6 +112,23 @@ function GardenAPI()
}
}
}
+ this.treeReloadFocused = function()
+ {
+ garden.focusedTree.reload();
+ }
+ this.treesReloadAll = function()
+ {
+ var groups = garden.element('g-groups').childNodes;
+ for(var i=0;i<groups.length;i++)
+ {
+ var trees = groups[i].childNodes;
+ for(var a=0;a < trees.length;a++)
+ {
+ if(trees[a].garden.tree)
+ trees[a].garden.reload();
+ }
+ }
+ }
}
var gardenAPI = new GardenAPI();

0 comments on commit 28b4a66

Please sign in to comment.