Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert workaround for thumbnail slowness. #751

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions html/gui/js/modules/Usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,34 +962,10 @@ Ext.extend(XDMoD.Module.Usage, XDMoD.PortalModule, {

if (child) {

tree.expandPath(child.getPath(), null, function (success) {
// If the summary node was successfully expanded...
if (success) {
// If available, open the default statistic.
//
// Open XDMoD Default: CPU Hours: Total
// XDMoD Default: XD SUs Charged: Total
var defaultStatistic = CCR.xdmod.features.xsede ? "total_su" : "total_cpu_hours";
var jobCountNode = child.findChild("statistic", defaultStatistic);
if (jobCountNode && !jobCountNode.disabled) {
tree.getSelectionModel().select(jobCountNode);
return;
}
tree.getSelectionModel().select(child);

// Otherwise, open the first available statistic,
// if any.
var firstAvailableStatisticNode = child.findChildBy(function (n) {
return !n.disabled;
});
if (firstAvailableStatisticNode) {
tree.getSelectionModel().select(firstAvailableStatisticNode);
return;
}
}
tree.expandPath(child.getPath(), null, function () {

// If none of the summary node's children could be
// opened, select the summary node.
tree.getSelectionModel().select(child);
});

} //if(child)
Expand Down