mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6852: UI - add sharedFunction isModuleIncluded().
This commit is contained in:
parent
2ac0013505
commit
f2a8082a43
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue