var NG_CLONE_TEMPLATE_INTERFACE = '/eg/staff/reporter/template/clone';
var OILS_TEMPLATE_INTERFACE = 'xul/template_builder.xul';
var OILS_LEGACY_TEMPLATE_INTERFACE = 'oils_rpt_builder.xhtml';
-
+var currentlyLoading = false;
/* generic folder window class */
oilsRptSetSubClass('oilsRptFolderWindow', 'oilsRptObject');
// Here lie the contents of a specific folder
oilsRptFolderWindow.prototype.draw = function(viaPaging) {
+ if (currentlyLoading) return; // avoids loading same data repeatedly
+ currentlyLoading=true;
_debug('drawing folder window for ' + this.folderNode.folder.name() );
}
oilsRptFolderWindow.prototype.fetchFolderData = function(callback) {
-
hideMe(DOM.oils_rpt_content_count_row_2);
hideMe(DOM.oils_rpt_content_row_2);
}
);
}
+ currentlyLoading=false;
}
);
req.send();