--- /dev/null
+if(typeof(mainContainer_Documents) != undefined){
+ mainContainer_Documents = undefined;
+}
+var mainContainer_Documents = null;
+
+if(typeof(bcRefreshGrid) != undefined){
+ bcRefreshGrid = undefined;
+}
+var bcRefreshGrid = function(folderId){
+ mainContainer_Documents.treeFolderEntity.setSelectedFolder(folderId);
+ mainContainer_Documents.treeFolderEntity.treeFolderPanel.getNodeById(folderId).expand();
+};
+
+/**
+* @param scope Object : The scope in which to execute the delegated function.
+* @param func Function : The function to execute
+* @param data Object or Array : The data to pass to the function. If the function is also passed arguments, the data is appended to the arguments list. If the data is an Array, each item is appended as a new argument.
+* @param isTimeout Boolean : Indicates if the delegate is being executed as part of timeout/interval method or not. This is required for Mozilla/Gecko based browsers when you are passing in extra arguments. This is not needed if you are not passing extra data in.
+*/
+if(typeof(delegate) != undefined){
+ delegate = undefined;
+}
+var delegate = function(scope, func, data, isTimeout)
+{
+ return function()
+ {
+ var args = Array.prototype.slice.apply(arguments).concat(data);
+ //Mozilla/Gecko passes a extra arg to indicate the "lateness" of the interval
+ //this needs to be removed otherwise your handler receives more arguments than you expected.
+ //NOTE : This uses jQuery for browser detection, you can add whatever browser detection you like and replace the below.
+ if (isTimeout && Ext.isGecko && !jQuery.browser.firefox16)
+ args.shift();
+
+ func.apply(scope, args);
+ }
+};
+
+if(typeof(mainLaunchRefreshState) != undefined){
+ mainLaunchRefreshState = undefined;
+}
+var mainLaunchRefreshState = function(progressConversionBar){
+ if(progressConversionBar){
+ progressConversionBar.launchRefreshState();
+ }
+};
\ No newline at end of file