CLOUDSTACK-6852: UI - modules - add global variable drModuleIncluded.

This commit is contained in:
Jessica Wang 2014-06-06 13:16:27 -07:00
parent 9e2db2f221
commit c29ed73d4d
3 changed files with 7 additions and 5 deletions

View File

@ -490,5 +490,8 @@
}
document.title = _l('label.app.name');
// set value to global variable
drModuleIncluded = isModuleIncluded("dr");
});
})(cloudStack, jQuery);

View File

@ -49,6 +49,8 @@ var md5HashedLogin = false;
var pageSize = 20;
//var pageSize = 1; //for testing only
var drModuleIncluded = false;
var rootAccountId = 1;
//async action

View File

@ -900,14 +900,11 @@
hypervisor: args.context.volumes[0].hypervisor
});
}
var drModuleIncluded = isModuleIncluded("dr");
var volumeDrEnabled = false;
if (drModuleIncluded) {
volumeDrEnabled = cloudStack.dr.sharedFunctions.isVolumeDrEnabled(args.context.volumes[0]);
}
}
$(['Running', 'Stopped']).each(function() {
$.ajax({