mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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…
x
Reference in New Issue
Block a user