You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2014/06/05 22:49:03 UTC
git commit: updated refs/heads/master to f2a8082
Repository: cloudstack
Updated Branches:
refs/heads/master 2ac001350 -> f2a8082a4
CLOUDSTACK-6852: UI - add sharedFunction isModuleIncluded().
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f2a8082a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f2a8082a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f2a8082a
Branch: refs/heads/master
Commit: f2a8082a43a7f8e82f26c7129cd8c81a3acaf6f9
Parents: 2ac0013
Author: Jessica Wang <je...@apache.org>
Authored: Thu Jun 5 13:44:33 2014 -0700
Committer: Jessica Wang <je...@apache.org>
Committed: Thu Jun 5 13:48:51 2014 -0700
----------------------------------------------------------------------
ui/scripts/sharedFunctions.js | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f2a8082a/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index d206349..c51bc8d 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -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) {