CLOUDSTACK-6852: UI - add sharedFunction isModuleIncluded().

This commit is contained in:
Jessica Wang 2014-06-05 13:44:33 -07:00
parent 2ac0013505
commit f2a8082a43

View File

@ -1119,6 +1119,16 @@ cloudStack.converters = {
}
}
function isModuleIncluded(moduleName) {
for(var moduleIndex = 0; moduleIndex < cloudStack.modules.length; moduleIndex++) {
if (cloudStack.modules[moduleIndex] == moduleName) {
return true;
break;
}
}
return false;
}
//data parameter passed to API call in listView
function listViewDataProvider(args, data, options) {