You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/07/28 16:04:18 UTC
[06/50] git commit: updated refs/heads/4.4 to d5220a8
CLOUDSTACK-6852: UI - add sharedFunction isModuleIncluded().
(cherry picked from commit 431ea8e9c2a09d85b089cd5bf608eb0ab340f083)
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f7697637
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f7697637
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f7697637
Branch: refs/heads/4.4
Commit: f7697637cb5e6787d4f8f23ef0d8432f28d8b921
Parents: ebcb5a5
Author: Jessica Wang <je...@apache.org>
Authored: Thu Jun 5 13:44:33 2014 -0700
Committer: Daan Hoogland <da...@onecht.net>
Committed: Mon Jul 28 16:02:25 2014 +0200
----------------------------------------------------------------------
ui/scripts/sharedFunctions.js | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f7697637/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) {